[FFmpeg-devel] [PATCH] Fix linesize computation for NV formats

Stefano Sabatini stefano.sabatini-lala
Sun Nov 15 17:13:22 CET 2009


for NV12 and NV21 data[1] contains both the U and V components, so it
needs to be multiplied by 2.
Alternatively we could have:
linesize[1] = width

which is equivalent.

I couldn't find any NV12 samples and libswscale cannot issue that in
output, so I didn't tested it.

FFmpeg = Faithless and Faithful Mystic Puristic Exploitable Game
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imgconvert-fix-nv-linesize.patch
Type: text/x-diff
Size: 561 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091115/c158e3ad/attachment.patch>

More information about the ffmpeg-devel mailing list