<div dir="ltr"><div>There was some post on here a few days ago about it being replaced with AVCodecParameters.<br><br><a href="https://ffmpeg.org/doxygen/3.1/structAVCodecParameters.html">https://ffmpeg.org/doxygen/3.1/structAVCodecParameters.html</a><br><br></div>So you could try stream->codecparameters<br><br><br><br><br><br><br><div><br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br><a href="http://lives-video.com" target="_blank">http://lives-video.com</a><br><a href="https://www.openhub.net/accounts/salsaman" target="_blank">https://www.openhub.net/accounts/salsaman</a><br></div></div></div></div></div>
<br><div class="gmail_quote">On Sun, Aug 21, 2016 at 9:27 PM, Brian Brice <span dir="ltr"><<a href="mailto:bbrice@gmail.com" target="_blank">bbrice@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is a great question.  I'm just now trying to familiarize myself<br>
with the 3.1 API, and little things like this come up.  I'd like to<br>
know the answer to this as well.<br>
<br>
Perette, have you tried the IRC channel?<br>
<a href="http://chat.freenode.net" rel="noreferrer" target="_blank">chat.freenode.net</a> / #ffmpeg<br>
<div><div class="h5"><br>
On Sun, Aug 21, 2016 at 5:00 PM, Perette Barella <<a href="mailto:perette@barella.org">perette@barella.org</a>> wrote:<br>
> In the structure AVStream, member ‘AVCodecContext *codec’ is marked<br>
> deprecated, and my use of it is causes compile warnings.<br>
><br>
> avformat_new_stream documentation<br>
> <a href="https://ffmpeg.org/doxygen/3.1/group__lavf__core.html#gadcb0fd3e507d9b58fe78f61f8ad39827" rel="noreferrer" target="_blank">https://ffmpeg.org/doxygen/3.<wbr>1/group__lavf__core.html#<wbr>gadcb0fd3e507d9b58fe78f61f8ad3<wbr>9827</a><br>
> indicates I’m to "call avcodec_close() and avformat_free_context() to clean<br>
> up the allocation by avformat_new_stream()”.<br>
><br>
> avcodec_close requires an AVCodecContext, which is in the deprecated<br>
> “codec”.<br>
><br>
> So what’s the deal?  Is there a new way I’m supposed to access this member?<br>
><br>
> Perette<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Libav-user mailing list<br>
> <a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
> <a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Brian Brice<br>
<a href="http://heapify.org/" rel="noreferrer" target="_blank">http://heapify.org/</a><br>
______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
</font></span></blockquote></div><br></div>