[FFmpeg-devel] [PATCH] Fix NV12/NV21 planarCopy()

Gwenole Beauchesne gbeauchesne
Sun Feb 21 10:40:07 CET 2010


Hi,

NV12/NV21 has only two planes, but this causes several problems in  
planarCopy():
- If the user doesn't set src[2-3] and dst[2-3] components to NULL,  
the application will crash
- We are copying the Y plane only because the GRAY8 test was incomplete
- We are copying half of the UV plane since length is assumed to match  
YV12 semantics in the copy loop

The attached patch fixed the last two problems and makes it possible  
to do NV12->NV12 copies.

Regards,
Gwenole.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: swscale.nv12.planarCopy.patch
Type: application/octet-stream
Size: 1733 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100221/5558a147/attachment.obj>
-------------- next part --------------




More information about the ffmpeg-devel mailing list