<div dir="ltr">Hi Liu,<div><br></div><div>  <i>codec -> codecpar</i> isn't a big change, and is easy to upgrade. Clone and pull the snapshot repo, you'll see some examples has been updated, though not all of them. </div><div><br></div><div>  While the new decode/encode API is another story. I haven't tried these yet. Not many examples I can find. Maybe the closest one is this: <a href="https://blogs.gentoo.org/lu_zero/2016/03/29/new-avcodec-api/">https://blogs.gentoo.org/lu_zero/2016/03/29/new-avcodec-api/</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 6:13 AM, Chao Liu <span dir="ltr"><<a href="mailto:yijinliu@gmail.com" target="_blank">yijinliu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>I am trying to upgrade our code to 3.1. There are a lot of warnings about deprecated APIs, like use AVStream.codecpar instead of AVStream.codec, use  avcodec_send_packet()/<wbr>avcodec_receive_frame() instead of avcodec_decode_video2. Are there any examples how to do the transition? I noticed that all these <a href="https://www.ffmpeg.org/doxygen/3.1/examples.html" target="_blank">examples</a> are still using the old APIs. Should they be updated?</div></div>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Shu. Wang @ Bestminr<br><a href="http://halfelf.me" target="_blank">http://halfelf.me</a></div></div>
</div>