dv: fix a check on dv_extract_timecode return value
authorMatthieu Bouron <matthieu.bouron@gmail.com>
Mon, 22 Oct 2012 17:08:26 +0000 (19:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 22 Oct 2012 17:09:47 +0000 (19:09 +0200)
Fixes CID733808

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/dv.c

index 01665c2..1d5ec2c 100644 (file)
@@ -462,7 +462,7 @@ static int dv_read_timecode(AVFormatContext *s) {
     ret = dv_extract_timecode(c->dv_demux, partial_frame, timecode);
     if (ret)
         av_dict_set(&s->metadata, "timecode", timecode, 0);
-    else if (ret < 0)
+    else
         av_log(s, AV_LOG_ERROR, "Detected timecode is invalid\n");
 
 finish: