[FFmpeg-cvslog] dv: fix a check on dv_extract_timecode return value
Matthieu Bouron
git at videolan.org
Mon Oct 22 19:44:26 CEST 2012
ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at gmail.com> | Mon Oct 22 19:08:26 2012 +0200| [d8173f264f732a4d14220816de2e54642115e2a7] | committer: Michael Niedermayer
dv: fix a check on dv_extract_timecode return value
Fixes CID733808
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d8173f264f732a4d14220816de2e54642115e2a7
---
libavformat/dv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 01665c2..1d5ec2c 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:
More information about the ffmpeg-cvslog
mailing list