[FFmpeg-cvslog] avcodec/mpegvideo_enc: Remove redundant time_base check

Andreas Rheinhardt git at videolan.org
Sat Apr 10 05:59:35 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Apr  6 13:43:46 2021 +0200| [80410674bd29d552c2af6453c5973323038cc947] | committer: Andreas Rheinhardt

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 at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=80410674bd29d552c2af6453c5973323038cc947
---

 libavcodec/mpegvideo_enc.c | 5 -----
 1 file changed, 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)



More information about the ffmpeg-cvslog mailing list