Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #272418

Category ffmpeg
Changed by Diego de Souza <ddesouzaohnoyoudont@nvidia.com>
Changed at Wed 24 Jun 2026 01:58:45
Repository https://git.ffmpeg.org/ffmpeg.git
Project ffmpeg
Branch master
Revision 74db061f0a4c75722c5d63c8ac8a63aac1bd0f29

Comments

avutil/hwcontext_cuda: add P012 and P212 to supported formats
NVDEC and CUVID decode 12-bit 4:2:0 content to AV_PIX_FMT_P012 and
12-bit 4:2:2 to AV_PIX_FMT_P212, but these formats were missing from
the CUDA frames context supported format list. As a result
av_hwframe_ctx_init() rejected them ("Pixel format not supported",
AVERROR(ENOSYS)), so decoding 12-bit content to CUDA frames and
hwdownload of such frames both failed.

Add P012 and P212 next to the existing P010/P016 and P210/P216 entries.
The per-plane device transfer is derived generically from the pixel
descriptor, so no other changes are required.

Signed-off-by: Diego de Souza <ddesouza@nvidia.com>

Changed files