[FFmpeg-devel] libavformat: deprecated AVStream member suggests usage of private field
h.leppkes at gmail.com
Sat Jun 3 21:20:15 EEST 2017
On Sat, Jun 3, 2017 at 6:51 PM, Tom M. <tom.mbrt at googlemail.com> wrote:
> 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.
codecpar is part of the public API, of course.
There was a bit of a snafu with positioning the codecpar member, and
we've updated the comments to reflect that in 3.3. Rest assured that
the position (and therefor the ABI) of codecpar is not going to change
without a major bump.
More information about the ffmpeg-devel