[vlc-devel] [PATCH] avcodec: copy correct chroma plane in CopyFromYv12.

Felix Abecassis felix.abecassis at gmail.com
Tue Nov 5 12:12:09 CET 2013

I was able to reproduce the problem on Windows with DXVA HW acceleration.
Since the format was initially NV12 I had to use the enclosed patch to add
a call to CopyFromYv12 to trigger the bug. With this patch we are doing
NV12 -> YV12 -> YV12 (inplace with CopyFromYv12).

2013/10/23 Felix Abecassis <felix.abecassis at gmail.com>

> 2013/10/23 Rafaël Carré <funman at videolan.org>
>> How can I reproduce the problem just to check?
>> When I use the hw decoder on h264 files it gives me yuv420.
> Same for me, but the modified line is not consistent with SSE_CopyFromYv12
> (called if the CPU supports SSE2) and the index is also not consistent with
> the other indices from the same statement (we're basically copying the
> first plane twice in the output image).
> I'm highly interested if someone has a way to use this code path.
> --
> Félix Abecassis
> http://felix.abecassis.me

Félix Abecassis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20131105/f646cd55/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Patch-to-reproduce-CopyFromYv12-bug-with-DXVA.patch
Type: application/octet-stream
Size: 2073 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20131105/f646cd55/attachment.obj>

More information about the vlc-devel mailing list