2017-11-11 17:38 GMT+01:00 Timo Rothenpieler <t...@rothenpieler.org>:

> @@ -249,8 +249,9 @@ int ff_nvdec_decode_init(AVCodecContext *avctx, unsigned 
> int dpb_size)
>
>      params.ulWidth             = avctx->coded_width;
>      params.ulHeight            = avctx->coded_height;
> -    params.ulTargetWidth       = avctx->coded_width;
> -    params.ulTargetHeight      = avctx->coded_height;
> +    params.display_area.top    = params.display_area.left   = 0;
> +    params.ulTargetWidth       = params.display_area.right  = 
> frames_ctx->width;
> +    params.ulTargetHeight      = params.display_area.bottom = 
> frames_ctx->height;

I wonder if the following is more readable and better fits the
existing assignments:
params.display_area.right  =
params.ulTargetWidth       = avctx->coded_width;
params.display_area.bottom =
params.ulTargetHeight      = avctx->coded_height;

Feel free to ignore, Carl Eugen
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to