Ticket #635 (closed defect: invalid)
Incorrect Memory Layout when using avpicture_layout with PIX_FMT_NV12
|Reported by:||jkersch||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
when decoding (e.g. a h264 stream) with output format PIX_FMT_NV12, the AVFrame contains 3 data buffers with Luma and Cb and Cr planes.
when using avpicture_layout to copythe AVPicture to a previously allocated memory buffer, the bytes are layouted incorrectly.
NV12 is all Luma bytes first, and after that the Cb and Cr bytes interleaved (see http://msdn.microsoft.com/en-us/library/windows/desktop/dd206750(v=vs.85).aspx#nv12)
i´ve worked around this manually, but it would be great if this incorrect behavior could be fixed within libavcodec itself.
comment:1 in reply to: ↑ description Changed 20 months ago by cehoyos
- Keywords PIX_FMT_NV12 layout removed