mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 11:22:14 +00:00
dv: fix a check on dv_extract_timecode return value
Fixes CID733808 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
22793d7bb3
commit
d8173f264f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user