diff mbox series

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

Message ID 20200601180531.20595-1-pkoshevoy@gmail.com
State New
Headers show
Series [FFmpeg-devel] lavc/nvenc: disable FMO unconditionally...
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Pavel Koshevoy June 1, 2020, 6:05 p.m. UTC
because ff_h264_decode_picture_parameter_set doesn't support FMO
---
 libavcodec/nvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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) {