[FFmpeg-devel] [PATCH] Replace AV_PKT_DATA_QUALITY_FACTOR by AV_PKT_DATA_QUALITY_STATS
jamrial at gmail.com
Sat Jul 25 03:26:09 CEST 2015
On 23/07/15 7:28 AM, Nicolas George wrote:
> Le quartidi 4 thermidor, an CCXXIII, James Almer a écrit :
>> Both GCC and MSVC let you in theory deprecate enumerators
>> I tried the example shown there for GCC but it didn't work. I may
>> have done something wrong, though.
> With gcc, I have tried the same thing and it had no effect.
Nevermind, seems to be a new feature in GCC 6.
We could add it to libavutil/attributes.h inside a preprocessor check,
but that GCC version is about nine months away from being finished and
it will be at least three more months before it gets a widespread use,
so no hurry.
> Since deprecated types work, there is a possible hack:
> typedef int ff_deprecated attribute_deprecated;
> #define DERECATED_INT_MACRO ((enum foo)(ff_deprecated)VALUE)
More information about the ffmpeg-devel