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

Stefano Sabatini stefano.sabatini-lala
Sun Nov 15 23:23:27 CET 2009


On date Sunday 2009-11-15 17:13:22 +0100, Stefano Sabatini encoded:
> Hi,
> 
> for NV12 and NV21 data[1] contains both the U and V components, so
> its size 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.

That change also requires a corresponding change in ff_fill_pointer(),
so patch updated.

I wonder if there is some reason if it has been done like that, it is
done that way since the initial inclusion of NV formats support in
r6115.

Regards.
-- 
FFmpeg = Faithless and Fierce Majestic Pitiless Extroverse Guru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imgconvert-fix-nv-linesize.patch
Type: text/x-diff
Size: 1099 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091115/e252f03d/attachment.patch>



More information about the ffmpeg-devel mailing list