[FFmpeg-devel] [PATCH] avutil/hwcontext_cuda: fix YUV420P cuda_get_buffer
timo at rothenpieler.org
Tue May 15 15:04:08 EEST 2018
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the ffmpeg-devel