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>
This commit is contained in:
Fei Wang 2021-10-12 16:24:01 +08:00 committed by James Almer
parent 4e7a7d75e3
commit 53403158cc
1 changed files with 1 additions and 1 deletions

View File

@ -577,10 +577,10 @@ static int vaapi_decode_make_config(AVCodecContext *avctx,
switch (avctx->codec_id) { switch (avctx->codec_id) {
case AV_CODEC_ID_H264: case AV_CODEC_ID_H264:
case AV_CODEC_ID_HEVC: case AV_CODEC_ID_HEVC:
case AV_CODEC_ID_AV1:
frames->initial_pool_size += 16; frames->initial_pool_size += 16;
break; break;
case AV_CODEC_ID_VP9: case AV_CODEC_ID_VP9:
case AV_CODEC_ID_AV1:
frames->initial_pool_size += 8; frames->initial_pool_size += 8;
break; break;
case AV_CODEC_ID_VP8: case AV_CODEC_ID_VP8: