[FFmpeg-devel] [PATCH 2/4] avcodec/nvenc: Fix b-frame parameter handling
Michael Niedermayer
michaelni at gmx.at
Thu Dec 25 15:56:55 CET 2014
On Thu, Dec 25, 2014 at 02:55:32PM +0100, timo at rothenpieler.org wrote:
> From: Timo Rothenpieler <timo at rothenpieler.org>
>
> ---
> libavcodec/nvenc.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
> index 345fb78..6a37ea6 100644
> --- a/libavcodec/nvenc.c
> +++ b/libavcodec/nvenc.c
> @@ -155,7 +155,6 @@ typedef struct NvencContext
> char *preset;
> int cbr;
> int twopass;
> - int gobpattern;
> int gpu;
> } NvencContext;
>
> @@ -582,6 +581,12 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
> memcpy(&ctx->encode_config, &preset_config.presetCfg, sizeof(ctx->encode_config));
> ctx->encode_config.version = NV_ENC_CONFIG_VER;
>
> + if (avctx->max_b_frames < -1)
> + avctx->max_b_frames = -1;
how do you get a value < -1 here ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The real ebay dictionary, page 1
"Used only once" - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141225/81ea7b84/attachment.asc>
More information about the ffmpeg-devel
mailing list