From 8400b126acb153329c418433c377d96afd1d1e02 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sun, 18 Dec 2011 20:41:42 +0000 Subject: avcodec: deprecate AVFrame.age This was intended as an optimisation for skipped blocks in MPEG2 P-frames and never used elsewhere. Removing this "optimisation" speeds up MPEG2 decoding by 1-2% (ARM Cortex-A9). Signed-off-by: Mans Rullgard --- libavcodec/avcodec.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libavcodec/avcodec.h') diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 1715bbb32b..7f4651b80f 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1004,13 +1004,12 @@ typedef struct AVFrame { */ int quality; +#if FF_API_AVFRAME_AGE /** - * buffer age (1->was last buffer and dint change, 2->..., ...). - * Set to INT_MAX if the buffer has not been used yet. - * - encoding: unused - * - decoding: MUST be set by get_buffer() for video. + * @deprecated unused */ - int age; + attribute_deprecated int age; +#endif /** * is this picture used as reference -- cgit v1.2.3