[Libav-user] Color space conversion

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Oct 29 01:17:41 CET 2014


Jasleen Kaur <Jasleen at ...> writes:

> uint8_t *plane[] = { m_picture_buf, m_picture_buf + ysize, 
> m_picture_buf + ysize + vusize, 0 };

>From a quick look this has to be:
uint8_t *plane[] = { m_picture_buf,
                     m_picture_buf + ysize + vusize,
                     m_picture_buf + ysize };

because you want YV12 and not YUV420P.

Carl Eugen



More information about the Libav-user mailing list