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

Hendrik Leppkes h.leppkes at gmail.com
Sat Jun 3 22:21:43 EEST 2017

On Sat, Jun 3, 2017 at 9:15 PM, Tom M. <tom.mbrt at googlemail.com> wrote:
> This is pretty confusing. Those "All fields below this line are not part of
> the public API." comments are completely ignored by doxygen. And this is
> where most people look at, I doubt they parse the raw header files
> themselves. Wouldnt it be possible to move these private fields into the
> internal struct? That way we would get rid of those misleading comments.
> There are downstream libraries even using the fields *skip_samples,
> start_skip_samples, first_discard_sample, last_discard_sample*, etc. Are
> they also meant to be private? Though their comments do not suggest this,
> imo.

It is planned to clean this up and move them into the private struct
the next major bump (or keep some of them and promote them to official
public status).
But yes, anyone using those fields right now is technically doing it wrong.

- Hendrik

More information about the ffmpeg-devel mailing list