summaryrefslogtreecommitdiff
path: root/libavcodec/vp9dec.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-03-05 00:39:12 -0300
committerJames Almer <jamrial@gmail.com>2020-03-26 11:45:12 -0300
commite4dd8ee3233634a7656d53f64bdfec37a501f38e (patch)
treec18c1756fe53e1430b3680726d91fe0f8847866f /libavcodec/vp9dec.h
parent840e92da17b12ea34df5757e57eb1d33231bc6b7 (diff)
downloadffmpeg-e4dd8ee3233634a7656d53f64bdfec37a501f38e.tar.gz
avcodec/vp9: use a buffer pool to allocate VP9Frame extradata
Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vp9dec.h')
-rw-r--r--libavcodec/vp9dec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vp9dec.h b/libavcodec/vp9dec.h
index 66573edc79..de02b146f0 100644
--- a/libavcodec/vp9dec.h
+++ b/libavcodec/vp9dec.h
@@ -152,6 +152,10 @@ typedef struct VP9Context {
int block_alloc_using_2pass;
uint16_t mvscale[3][2];
uint8_t mvstep[3][2];
+
+ // frame specific buffer pools
+ AVBufferPool *frame_extradata_pool;
+ int frame_extradata_pool_size;
} VP9Context;
struct VP9TileData {