lavu/timecode: Allow drop frame mode for 60000/1001 fps
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
55d66b2790
commit
a717fa84ed
2 changed files with 3 additions and 3 deletions
|
@ -152,8 +152,8 @@ static int check_timecode(void *log_ctx, AVTimecode *tc)
|
|||
av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30) {
|
||||
av_log(log_ctx, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 FPS\n");
|
||||
if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) {
|
||||
av_log(log_ctx, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 or 60000/1001 FPS\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
if (check_fps(tc->fps) < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue