Thank for your answer.

Actually the problem was that I allocate and initialize a new
AVCodecContext, like that:
*avCodecContext = avcodec_alloc_context3( avCodec);*
*avcodec_get_context_defaults3( avCodecContext, avCodec );*
*// set some values: width, height, pixel format...*

Instead of get it from the AVFormatContext:
*AVCodecContext* context = avFormatContext.streams[0]->codec;*

When I check the fileds of this new object in debug, it has some fileds
initialized to differents values. And the decoding works!
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to