> for dynamic resolution, maybe add a check ? > > ctx->support_dyn_res = nvenc_check_cap(avctx, > NV_ENC_CAPS_SUPPORT_DYN_RES_CHANGE); > > and: > if (dw != ctx->init_encode_params.darWidth || dh != > ctx->init_encode_params.darHeight) > > ==> > if ( (dw != ctx->init_encode_params.darWidth || dh != > ctx->init_encode_params.darHeight) && ctx->support_dyn_res)
That's not a resolution change, only a dar change. I'm not sure if actual resolution changes are even supported by avcodec.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel