<div dir="ltr"><div class="gmail_extra">Yes you have to create with avcodec_alloc_context3.</div><div class="gmail_extra">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.</div></div>