Yes you have to create with avcodec_alloc_context3. The fact that structure of same type is present in input stream description does not mean you are supposed to use it. Don't remember where I learned it, maybe earlier on this list.
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
