[FFmpeg-cvslog] libavformat/movenc: remove unnecessary null check
Mark Reid
git at videolan.org
Mon May 30 02:59:28 CEST 2016
ffmpeg | branch: master | Mark Reid <mindmark at gmail.com> | Sun May 29 17:17:32 2016 -0700| [d74cc6157478e1bfa25674488554d966801a78cb] | committer: Michael Niedermayer
libavformat/movenc: remove unnecessary null check
Fixes CID1361955
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d74cc6157478e1bfa25674488554d966801a78cb
---
libavformat/movenc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 49cd1bd..3a633a6 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1894,9 +1894,7 @@ static int mov_write_tmcd_tag(AVIOContext *pb, MOVTrack *track)
avio_w8(pb, nb_frames); /* Number of frames */
avio_w8(pb, 0); /* Reserved */
- if (track->st)
- t = av_dict_get(track->st->metadata, "reel_name", NULL, 0);
-
+ t = av_dict_get(track->st->metadata, "reel_name", NULL, 0);
if (t && utf8len(t->value) && track->mode != MODE_MP4)
mov_write_source_reference_tag(pb, track, t->value);
else
More information about the ffmpeg-cvslog
mailing list