On 5/5/2017 11:20 PM, Vittorio Giovara wrote: > From: Anton Khirnov <an...@khirnov.net> > > They are incompatible with the new channel layout scheme and no decoder > uses them. > > Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> > --- > libavcodec/avcodec.h | 5 +++++ > libavcodec/decode.c | 4 ++++ > libavformat/dump.c | 9 ++++++++- > libavformat/utils.c | 9 +++++++++ > 4 files changed, 26 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > index 162f1abe4b..4089c08a24 100644 > --- a/libavcodec/avcodec.h > +++ b/libavcodec/avcodec.h > @@ -1165,8 +1165,13 @@ typedef struct AVPacket { > #define AV_PKT_FLAG_CORRUPT 0x0002 ///< The packet content is corrupted > > enum AVSideDataParamChangeFlags { > +#if FF_API_OLD_CHANNEL_LAYOUT > + /** > + * @deprecated those are not used by any decoder
Perhaps __attribute__((deprecated)) For enum values it's GCC >= 6 only, so it will need an addition to attributes.h > + */ > AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT = 0x0001, > AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT = 0x0002, > +#endif > AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE = 0x0004, > AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS = 0x0008, > }; _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel