diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-04 11:16:27 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-15 10:32:05 +0200 |
commit | 2ad468ed1f7a7c67f1a2ab37c9e304b0011f0aae (patch) | |
tree | 61a36d176d72ffa1e6318119ea0852598e048376 /libavcodec/libopenh264enc.c | |
parent | aa3b0f437674ebad01c01212fa7f6895b8e3a7dd (diff) | |
download | ffmpeg-2ad468ed1f7a7c67f1a2ab37c9e304b0011f0aae.tar.gz |
lavc/libkvazaar,libopenh264enc: drop redundant checks
The same check is present in encode_preinit_video().
Diffstat (limited to 'libavcodec/libopenh264enc.c')
-rw-r--r-- | libavcodec/libopenh264enc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index 3c605fe8ea..15c3822824 100644 --- a/libavcodec/libopenh264enc.c +++ b/libavcodec/libopenh264enc.c @@ -139,11 +139,6 @@ static av_cold int svc_encode_init(AVCodecContext *avctx) if (avctx->framerate.num > 0 && avctx->framerate.den > 0) { param.fMaxFrameRate = av_q2d(avctx->framerate); } else { - if (avctx->ticks_per_frame > INT_MAX / avctx->time_base.num) { - av_log(avctx, AV_LOG_ERROR, - "Could not set framerate for libopenh264enc: integer overflow\n"); - return AVERROR(EINVAL); - } param.fMaxFrameRate = 1.0 / av_q2d(avctx->time_base) / FFMAX(avctx->ticks_per_frame, 1); } param.iPicWidth = avctx->width; |