Commit d8173f26 authored by Matthieu Bouron's avatar Matthieu Bouron Committed by Michael Niedermayer

dv: fix a check on dv_extract_timecode return value

Fixes CID733808
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 22793d7b
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment