aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dv.c
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2012-10-22 19:08:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-22 19:09:47 +0200
commitd8173f264f732a4d14220816de2e54642115e2a7 (patch)
treeed0e85d567e2e0f68651266cda8974c736f27a2d /libavformat/dv.c
parent22793d7bb36e771dde1043d66f720ca7bacc7a1f (diff)
downloadffmpeg-d8173f264f732a4d14220816de2e54642115e2a7.tar.gz
dv: fix a check on dv_extract_timecode return value
Fixes CID733808 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r--libavformat/dv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 01665c21b1..1d5ec2cf89 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -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: