[FFmpeg-devel] [PATCH] avutil/hwcontext_cuda: fix YUV420P cuda_get_buffer
cus at passwd.hu
Wed May 16 00:07:10 EEST 2018
On Tue, 15 May 2018, Timo Rothenpieler wrote:
> On 15.05.2018 13:37, Marton Balint wrote:
>>> Are you sure it isn't already that way? I tested specially YUV420P and
>>> could not make out any issues.
>> For 4K content linesize is 3840, but linesize becomes 2048 instead
>> of 1920.
> That's odd, 2048 seems more correct since it's a multiple of the
> recommended 2048. But I guess the whole yuv420p in nvenc is some weird
> hack on the driver side.
>>> So something like
>>> frame->linesize = frame->linesize = frame->linesize / 2;
>>> frame->data = frame->data;
>>> frame->data = frame->data + frame->linesize * ctx->height
>>> / 2;
>> Ok, will use this.
> Feel free to push if it works. Don't have access to an nvidia machine
> right now, so can't properly test.
More information about the ffmpeg-devel