+    ctx->encode_config.encodeCodecConfig.h264Config.maxNumRefFrames = 
avctx->refs;

avctx->refs should propably be checked for >= 0.

I'm not sure if maxNumRefFrames means the exact same thing as avctx->refs, but the comment in the nvenc header isn't exactly clear about that.

This would also forward the ffmpeg default, 1, to nvenc, instead of the nvenc default, 0, which lets the driver decide what is best. I'm not sure if this is desireable and how much it affects the quality.



Timo

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to