From 5f531386210e844f0a6819404cde58da54c46a00 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 4 Nov 2012 00:56:57 +0100 Subject: [PATCH] movenc: remove unneeded check Fixes CID741417 Signed-off-by: Michael Niedermayer --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 1f7701a339..3f540094d2 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);