[FFmpeg-devel] [PATCH] lavc/nvenc: disable FMO unconditionally...

Pavel Koshevoy pkoshevoy at gmail.com
Mon Jun 1 21:05:31 EEST 2020


because ff_h264_decode_picture_parameter_set doesn't support FMO
---
 libavcodec/nvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index cbdddd33f9..c21c6dc567 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -997,12 +997,12 @@ static av_cold int nvenc_setup_h264_config(AVCodecContext *avctx)
     }
 
     h264->outputPictureTimingSEI = 1;
+    h264->fmoMode = NV_ENC_H264_FMO_DISABLE;
 
     if (cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_LOWDELAY_HQ ||
         cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_HQ ||
         cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_VBR_HQ) {
         h264->adaptiveTransformMode = NV_ENC_H264_ADAPTIVE_TRANSFORM_ENABLE;
-        h264->fmoMode = NV_ENC_H264_FMO_DISABLE;
     }
 
     if (ctx->flags & NVENC_LOSSLESS) {
-- 
2.26.2



More information about the ffmpeg-devel mailing list