]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/mpegvideo_enc: Remove redundant time_base check
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Tue, 6 Apr 2021 11:43:46 +0000 (13:43 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 10 Apr 2021 01:53:45 +0000 (03:53 +0200)
This check is dead as ff_encode_preinit() has an even stricter check.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavcodec/mpegvideo_enc.c

index 1f8fc8d8b8b7f3c6a962e621c89bb0d7d980f22e..8f2733091d1e2b5f9e3cf55fcfd81fe3b52e843c 100644 (file)
@@ -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)