movenc: remove unneeded check
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Nov 2012 23:56:57 +0000 (00:56 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Nov 2012 00:03:52 +0000 (01:03 +0100)
Fixes CID741417
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/movenc.c

index 1f7701a..3f54009 100644 (file)
@@ -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);