[FFmpeg-devel] libavformat: deprecated AVStream member suggests usage of private field

Tom M. tom.mbrt at googlemail.com
Sat Jun 3 19:51:49 EEST 2017


I noticed that

AVCodecContext *codec;

within AVStream
<https://ffmpeg.org/doxygen/3.2/avformat_8h_source.html#l00889> has been
marked deprecated and suggests the usage of

AVCodecParameters *codecpar;

However, due to avformat.h:1001
<https://ffmpeg.org/doxygen/3.2/avformat_8h_source.html#l01001> *codecpar*
is not part of the public API. I assume that this is a mistake since *codec*
has been part of public API before?

Introduced in commit c1c7e0abb0c513a5f35b29126175b99fc9ca0254.


More information about the ffmpeg-devel mailing list