Message ID | 1588251554-3665-2-git-send-email-lance.lmwang@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | [FFmpeg-devel,1/5] avcodec/v4l2_m2m_enc: reindent code | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
tor 2020-04-30 klockan 20:59 +0800 skrev lance.lmwang@gmail.com: > From: Limin Wang <lance.lmwang@gmail.com> > > Signed-off-by: Limin Wang <lance.lmwang@gmail.com> > --- > libavformat/mxfdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c > index fdd0dd2a88..02a2a6d97a 100644 > --- a/libavformat/mxfdec.c > +++ b/libavformat/mxfdec.c > @@ -363,7 +363,7 @@ static void mxf_free_metadataset(MXFMetadataSet > **ctx, int freectx) > break; > } > if (freectx) > - av_freep(ctx); > + av_freep(ctx); > } Might as well att some {} braces too /Tomas
On Mon, May 4, 2020 at 4:13 PM Tomas Härdin <tjoppen@acc.umu.se> wrote: > tor 2020-04-30 klockan 20:59 +0800 skrev lance.lmwang@gmail.com: > > From: Limin Wang <lance.lmwang@gmail.com> > > > > Signed-off-by: Limin Wang <lance.lmwang@gmail.com> > > --- > > libavformat/mxfdec.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c > > index fdd0dd2a88..02a2a6d97a 100644 > > --- a/libavformat/mxfdec.c > > +++ b/libavformat/mxfdec.c > > @@ -363,7 +363,7 @@ static void mxf_free_metadataset(MXFMetadataSet > > **ctx, int freectx) > > break; > > } > > if (freectx) > > - av_freep(ctx); > > + av_freep(ctx); > > } > > Might as well att some {} braces too > > Sorry, I haven't understand your comments, are you want to change like below? if (freectx) { av_freep(cox); } /Tomas > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
mån 2020-05-04 klockan 18:58 +0800 skrev Lance Wang: > On Mon, May 4, 2020 at 4:13 PM Tomas Härdin <tjoppen@acc.umu.se> > wrote: > > > tor 2020-04-30 klockan 20:59 +0800 skrev lance.lmwang@gmail.com: > > > From: Limin Wang <lance.lmwang@gmail.com> > > > > > > Signed-off-by: Limin Wang <lance.lmwang@gmail.com> > > > --- > > > libavformat/mxfdec.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c > > > index fdd0dd2a88..02a2a6d97a 100644 > > > --- a/libavformat/mxfdec.c > > > +++ b/libavformat/mxfdec.c > > > @@ -363,7 +363,7 @@ static void > > > mxf_free_metadataset(MXFMetadataSet > > > **ctx, int freectx) > > > break; > > > } > > > if (freectx) > > > - av_freep(ctx); > > > + av_freep(ctx); > > > } > > > > Might as well att some {} braces too > > > > > Sorry, I haven't understand your comments, are you want to change > like > below? > if (freectx) { > av_freep(cox); > } > yes
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index fdd0dd2a88..02a2a6d97a 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -363,7 +363,7 @@ static void mxf_free_metadataset(MXFMetadataSet **ctx, int freectx) break; } if (freectx) - av_freep(ctx); + av_freep(ctx); } static int64_t klv_decode_ber_length(AVIOContext *pb)