Commit 8c221482 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Michael Niedermayer

timecode: Do not fail for non-standard framerates

Instead just warn, and use the parse fps normally.
Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent 4f00d235
...@@ -160,9 +160,8 @@ static int check_timecode(void *log_ctx, AVTimecode *tc) ...@@ -160,9 +160,8 @@ static int check_timecode(void *log_ctx, AVTimecode *tc)
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
if (check_fps(tc->fps) < 0) { if (check_fps(tc->fps) < 0) {
av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate %d/%d not supported\n", av_log(log_ctx, AV_LOG_WARNING, "Using non-standard frame rate %d/%d\n",
tc->rate.num, tc->rate.den); tc->rate.num, tc->rate.den);
return AVERROR_PATCHWELCOME;
} }
return 0; return 0;
} }
......
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