[Libav-user] AVStream->codec deprecation

salsaman salsaman at gmail.com
Mon Aug 22 04:05:25 EEST 2016


There was some post on here a few days ago about it being replaced with
AVCodecParameters.

https://ffmpeg.org/doxygen/3.1/structAVCodecParameters.html

So you could try stream->codecparameters










http://lives-video.com
https://www.openhub.net/accounts/salsaman

On Sun, Aug 21, 2016 at 9:27 PM, Brian Brice <bbrice at gmail.com> wrote:

> This is a great question.  I'm just now trying to familiarize myself
> with the 3.1 API, and little things like this come up.  I'd like to
> know the answer to this as well.
>
> Perette, have you tried the IRC channel?
> chat.freenode.net / #ffmpeg
>
> On Sun, Aug 21, 2016 at 5:00 PM, Perette Barella <perette at barella.org>
> wrote:
> > In the structure AVStream, member ‘AVCodecContext *codec’ is marked
> > deprecated, and my use of it is causes compile warnings.
> >
> > avformat_new_stream documentation
> > https://ffmpeg.org/doxygen/3.1/group__lavf__core.html#
> gadcb0fd3e507d9b58fe78f61f8ad39827
> > indicates I’m to "call avcodec_close() and avformat_free_context() to
> clean
> > up the allocation by avformat_new_stream()”.
> >
> > avcodec_close requires an AVCodecContext, which is in the deprecated
> > “codec”.
> >
> > So what’s the deal?  Is there a new way I’m supposed to access this
> member?
> >
> > Perette
> >
> >
> > _______________________________________________
> > Libav-user mailing list
> > Libav-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/libav-user
> >
>
>
>
> --
> Brian Brice
> http://heapify.org/
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160821/a285daf2/attachment.html>


More information about the Libav-user mailing list