aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2021-10-12 16:24:01 +0800
committerWolfgang Haupt <haupt.wolfgang@gmail.com>2021-12-28 20:04:52 +0100
commit5774a0524c0851293a36acf3f3586e7c39a64b4a (patch)
tree1f73b8ad882f89ed0a95edb42600ec4b42c052d3 /libavcodec
parent03f5a57b9364d7ce789589594450fdf714a23e70 (diff)
downloadffmpeg-5774a0524c0851293a36acf3f3586e7c39a64b4a.tar.gz
avcodec/vaapi: increase av1 decode pool size
For film grain clip, vaapi_av1 decoder will cache additional 8 surfaces that will be used to store frames which apply film grain. So increase the pool size by plus 8 to avoid leak of surface. Signed-off-by: Fei Wang <fei.w.wang@intel.com> (cherry picked from commit 53403158cc19b9e5baeff6af9317f14d1a20d0cb)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vaapi_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index 57a0eb4e6e..032e8531f2 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -577,10 +577,10 @@ static int vaapi_decode_make_config(AVCodecContext *avctx,
switch (avctx->codec_id) {
case AV_CODEC_ID_H264:
case AV_CODEC_ID_HEVC:
+ case AV_CODEC_ID_AV1:
frames->initial_pool_size += 16;
break;
case AV_CODEC_ID_VP9:
- case AV_CODEC_ID_AV1:
frames->initial_pool_size += 8;
break;
case AV_CODEC_ID_VP8: