mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/mpegvideo_enc: Remove redundant time_base check
This check is dead as ff_encode_preinit() has an even stricter check. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
4782124b90
commit
80410674bd
@ -672,11 +672,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
return AVERROR_PATCHWELCOME;
|
return AVERROR_PATCHWELCOME;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!avctx->time_base.den || !avctx->time_base.num) {
|
|
||||||
av_log(avctx, AV_LOG_ERROR, "framerate not set\n");
|
|
||||||
return AVERROR(EINVAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if FF_API_PRIVATE_OPT
|
#if FF_API_PRIVATE_OPT
|
||||||
FF_DISABLE_DEPRECATION_WARNINGS
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
if (avctx->b_frame_strategy)
|
if (avctx->b_frame_strategy)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user