mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
timecode: Do not fail for non-standard framerates
Instead just warn, and use the parse fps normally. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
parent
4f00d23577
commit
8c22148220
@ -160,9 +160,8 @@ static int check_timecode(void *log_ctx, AVTimecode *tc)
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
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);
|
||||
return AVERROR_PATCHWELCOME;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user