Commit f0eacbc7 authored by Michael Niedermayer's avatar Michael Niedermayer

dvenc: dont fail hard if the timecode is invalid

Instead just dont store the timecode
Fixes Ticket2187
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b0635e2f
...@@ -376,8 +376,8 @@ static int dv_write_header(AVFormatContext *s) ...@@ -376,8 +376,8 @@ static int dv_write_header(AVFormatContext *s)
break; break;
} }
} }
if (tcr) if (tcr && av_timecode_init_from_string(&dvc->tc, rate, tcr->value, s) >= 0)
return av_timecode_init_from_string(&dvc->tc, rate, tcr->value, s); return 0;
return av_timecode_init(&dvc->tc, rate, 0, 0, s); return av_timecode_init(&dvc->tc, rate, 0, 0, s);
} }
......
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