On Mon, May 16, 2016 at 10:29:03AM +0200, Anton Khirnov wrote: > --- a/libavcodec/nvenc.c > +++ b/libavcodec/nvenc.c > @@ -619,6 +619,9 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx) > h264->maxNumRefFrames = avctx->refs; > h264->idrPeriod = cc->gopLength; > > + h264->sliceMode = 3; > + h264->sliceModeData = FFMAX(avctx->slices, 1); > + > @@ -694,6 +697,9 @@ static int nvenc_setup_hevc_config(AVCodecContext *avctx) > cc->profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID; > avctx->profile = FF_PROFILE_HEVC_MAIN; > > + hevc->sliceMode = 3; > + hevc->sliceModeData = FFMAX(avctx->slices, 1);
Align as the rest of the file does please. Diego _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
