diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-06 13:43:46 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-10 03:53:45 +0200 |
commit | 80410674bd29d552c2af6453c5973323038cc947 (patch) | |
tree | fef516b9bcc2917185330a1d3ce261f5342f2e5d /libavcodec | |
parent | 4782124b90cf915ede2cebd871be82fc0267a135 (diff) | |
download | ffmpeg-80410674bd29d552c2af6453c5973323038cc947.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 1f8fc8d8b8..8f2733091d 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -672,11 +672,6 @@ FF_ENABLE_DEPRECATION_WARNINGS 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 FF_DISABLE_DEPRECATION_WARNINGS if (avctx->b_frame_strategy) |