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