mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-07 22:55:27 +01:00
dvenc: dont fail hard if the timecode is invalid
Instead just dont store the timecode
Fixes Ticket2187
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f0eacbc760)
This commit is contained in:
committed by
Carl Eugen Hoyos
parent
a55c274f51
commit
f6b50924a5
@@ -376,8 +376,8 @@ static int dv_write_header(AVFormatContext *s)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (tcr)
|
||||
return av_timecode_init_from_string(&dvc->tc, rate, tcr->value, s);
|
||||
if (tcr && av_timecode_init_from_string(&dvc->tc, rate, tcr->value, s) >= 0)
|
||||
return 0;
|
||||
return av_timecode_init(&dvc->tc, rate, 0, 0, s);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user