[libav-api] H264 Decoding

Kiara Forman kiaraforman at icloud.com
Tue Jun 7 21:41:19 CEST 2016

Ok the formats both happen to be AV_PIX_FMT_YUV420P.

with AV_PIX_FMT_YUV420P im seeing 2 left half images purple and green 

with AV_PIX_FMT_NV12 and AV_PIX_FMT_NV21 im seeing 2 left half images blue and green

Sent from my iPhone

> On Jun 7, 2016, at 13:54, Luca Barbato <lu_zero at gentoo.org> wrote:
>> On 03/06/16 16:07, Kiara Forman wrote:
>> A similar thing happens when i say the image is nv12. I even tried
>> nv21. Is there a way to tell the image format from the AVFrame data?
>> Also, AVCodecContext.pix_fmt = AV_PIX_FMT_YUV420P thats going into
>> avcodec_decode_video2. Is there some reason why the AVFrame data that
>> coming out is not the same pix_fmt?
> The AVFrame.format field is what determines what is the content of the
> frame.
> the information in the codec context should not be trusted.
> https://blogs.gentoo.org/lu_zero/2015/11/08/trusting-the-context/
> lu
> _______________________________________________
> libav-api mailing list
> libav-api at libav.org
> https://lists.libav.org/mailman/listinfo/libav-api

More information about the libav-api mailing list