[Libav-user] avcodec_decode_video2 gets wrong frame dimensions

zt p panzhaotai at gmail.com
Wed Dec 5 14:51:05 CET 2012


Hi,

I'm using ffmpeg1.0 (with code name of "Angle") as H264 decoder, following
the sample code in doc/examples/decoding_encoding.c. I use it to decode a
compressed H264 bit stream. The resolution is 1280x800. However, after
calling avcodec_decode_video2, coded_width = 800 and codec_height = 1280,
while width = 0 and height = 1280. It seems that the values of width and
height are exchanged.
Is it a bug?

Regards,
Zhaotai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121205/cc0d43a4/attachment.html>


More information about the Libav-user mailing list