[FFmpeg-devel] [PATCH 1/2] avcodec/cuvid: add cuvid decoder

Andrey Turkin andrey.turkin at gmail.com
Mon Jun 6 11:30:53 CEST 2016


2016-06-05 21:58 GMT+03:00 Timo Rothenpieler <timo at rothenpieler.org>:

> +
> +    avctx->width = format->coded_width;
> +    avctx->height = format->coded_height;
> +
>

This patch seems to mix bitstream picture dimensions and output picture
dimensions in several places. Can you test if the decoder works with input
video of "strange" size (say, 325x243)?

+    hwframe_ctx->format = AV_PIX_FMT_CUDA;
> +    hwframe_ctx->sw_format = AV_PIX_FMT_NV12;
> +    hwframe_ctx->width = FFALIGN(cuinfo.ulTargetWidth, 16);
> +    hwframe_ctx->height = FFALIGN(cuinfo.ulTargetHeight, 16);
>

NVENC aligns to 32 (I think hevc requires this sometimes); maybe use same
here?


More information about the ffmpeg-devel mailing list