summaryrefslogtreecommitdiff
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-12-18 20:41:42 +0000
committerMans Rullgard <mans@mansr.com>2011-12-18 22:14:33 +0000
commit8400b126acb153329c418433c377d96afd1d1e02 (patch)
treef793e22dc029484f1105e2c80448195364f22542 /libavcodec/pthread.c
parentbc78ceec2be6613c265387017221c7ceda15aa7d (diff)
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 <mans@mansr.com>
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 5f427c0390..7e03c64f40 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -855,13 +855,6 @@ int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f)
pthread_mutex_unlock(&p->parent->buffer_mutex);
- /*
- * Buffer age is difficult to keep track of between
- * multiple threads, and the optimizations it allows
- * are not worth the effort. It is disabled for now.
- */
- f->age = INT_MAX;
-
return err;
}