Skip to content
Snippets Groups Projects
Commit f0eacbc7 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

dvenc: dont fail hard if the timecode is invalid


Instead just dont store the timecode
Fixes Ticket2187

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent b0635e2f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment