[FFmpeg-devel] [PATCH] lavc/decode: allow users to shrink the hw frames pool size, if they so desire.

Moritz Barsnick barsnick at gmx.net
Sun Nov 25 11:15:31 EET 2018


On Sat, Nov 24, 2018 at 02:44:45 +0100, Timo Rothenpieler wrote:
> +            // available then add/substract them here.
                                     ^ nit: subtract

> -{"extra_hw_frames", "Number of extra hardware frames to allocate for the user", OFFSET(extra_hw_frames), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, V|D },
> +{"extra_hw_frames", "Number of extra hardware frames to allocate for the user, negative values are supported at own risk", OFFSET(extra_hw_frames), AV_OPT_TYPE_INT, { .i64 = 0 }, INT_MIN, INT_MAX, V|D },

"at own risk" sounds hazy, but I guess the consequences can't be
explained here.

Moritz


More information about the ffmpeg-devel mailing list