mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/nvenc: Remove aspect-ratio decompensation logic
This dubious behaviour in nvenc was finally removed by nvidia, and as we refuse to run on anything older than 7.0, we don't need to keep it around for old versions.
This commit is contained in:
parent
50b1453915
commit
829db8effd
@ -953,18 +953,6 @@ static av_cold int nvenc_setup_encoder(AVCodecContext *avctx)
|
||||
ctx->init_encode_params.darWidth = avctx->width;
|
||||
}
|
||||
|
||||
// De-compensate for hardware, dubiously, trying to compensate for
|
||||
// playback at 704 pixel width.
|
||||
if (avctx->width == 720 &&
|
||||
(avctx->height == 480 || avctx->height == 576)) {
|
||||
av_reduce(&dw, &dh,
|
||||
ctx->init_encode_params.darWidth * 44,
|
||||
ctx->init_encode_params.darHeight * 45,
|
||||
1024 * 1024);
|
||||
ctx->init_encode_params.darHeight = dh;
|
||||
ctx->init_encode_params.darWidth = dw;
|
||||
}
|
||||
|
||||
ctx->init_encode_params.frameRateNum = avctx->time_base.den;
|
||||
ctx->init_encode_params.frameRateDen = avctx->time_base.num * avctx->ticks_per_frame;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user