Re: [FFmpeg-devel] why ffmpeg 3.1.1 still uses AVStream::codec

2016-07-19 Thread qw
Hi, If AVStream::codec is declared as deprecated, I think, there should be another way to open and close avcodec instead of using avcodec_open2() and avcodec_close(). Is that right? Thanks! Regards Andrew At 2016-07-19 19:30:58, "Timo Rothenpieler" wrote: >> Hi, >> >> I have read part

Re: [FFmpeg-devel] why ffmpeg 3.1.1 still uses AVStream::codec

2016-07-19 Thread Timo Rothenpieler
> Hi, > > I have read part of source code of ffmpeg 3.1.1. In the structure of 'struct > AVStream', 'AVCodecContext *codec' is declared as deprecated. But in > ffmpeg.c, 'AVCodecContext *codec' is still used in some functions. Why? Because nobody felt like changing that yet. ___

[FFmpeg-devel] why ffmpeg 3.1.1 still uses AVStream::codec

2016-07-19 Thread qw
Hi, I have read part of source code of ffmpeg 3.1.1. In the structure of 'struct AVStream', 'AVCodecContext *codec' is declared as deprecated. But in ffmpeg.c, 'AVCodecContext *codec' is still used in some functions. Why? Thanks! Regards Andrew __