My first post; please be kind. :-)
I have an application that uses libav 0.7.4 to decode video. I am trying to
decode an MPEG2 file with 4:2:2 chroma. I set pCodec->Ctx as follows:
if (chroma_format == 2)
pCodecCtx->pix_fmt = PIX_FMT_YUV422P;
// Open codec
if (avcodec_open(pCodecCtx, pCodec) < 0)
return 3; // Could not open codec
The frame gets decoded but the U and V planes do not contain proper data
in the bottom half. It is as if the decoder thinks the UV height is only
half the Y height. So, the top half of the picture is perfect. But the
bottom half has correct luma but green color.
Some notes I have seen say that for decoding, the codec can overrule
the pix_format setting if it "knows better".
Your advise to resolve this would be greatly appreciated.
Don
(neuron2)
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api