[FFmpeg-cvslog] movenc: remove unneeded check
Michael Niedermayer
git at videolan.org
Sun Nov 4 01:04:41 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Nov 4 00:56:57 2012 +0100| [5f531386210e844f0a6819404cde58da54c46a00] | committer: Michael Niedermayer
movenc: remove unneeded check
Fixes CID741417
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5f531386210e844f0a6819404cde58da54c46a00
---
libavformat/movenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 1f7701a..3f54009 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2037,7 +2037,7 @@ static int mov_write_int8_metadata(AVFormatContext *s, AVIOContext *pb,
if (!(t = av_dict_get(s->metadata, tag, NULL, 0)))
return 0;
- num = t ? atoi(t->value) : 0;
+ num = atoi(t->value);
avio_wb32(pb, len+8);
ffio_wfourcc(pb, name);
More information about the ffmpeg-cvslog
mailing list