<div dir="ltr">Hi Anton. I see what you mean, but I actually use that internal context,and it works perfectly.<div>For video I am getting h264 NALs from somewhere,so I don't perform encoding at all.</div><div>For audio, I am opening existing audio files/ streams with data in the format I need,so I don't</div><div>transcode,but just pass the data as is into the muxer.<br><div>So as you see I don't really need codec context for encoding.</div><div>But if the API forces me to create one just for the sake of aligning with some rules,I am not sure</div><div>that's a good thing.</div></div></div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Mar 14, 2018 at 10:26 PM Anton Shekhovtsov <<a href="mailto:shekh.anton@gmail.com">shekh.anton@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div>