diff options
author | Wenbin Chen <wenbin.chen-at-intel.com@ffmpeg.org> | 2022-03-18 14:25:11 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2022-04-06 17:12:26 +0800 |
commit | 0a0847dbac9bdfd24607572886a0d42cdea1691a (patch) | |
tree | 9fc06381f6b3f8a7d666eb62cf9d83eb00e6d9ab /libavcodec/dca_lbr.c | |
parent | 4a633eb36fb078f600d6cbbd8f184204c61a96f9 (diff) | |
download | ffmpeg-0a0847dbac9bdfd24607572886a0d42cdea1691a.tar.gz |
libavcodec/qsvdec: using suggested num to set init_pool_size
The init_pool_size is set to be 64 and it is too many.
Use IOSurfQuery to get NumFrameSuggest which is the suggested
number of frame that needed to be allocated when initializing the decoder.
Considering that the hevc_qsv encoder uses the most frame buffer,
async is 4 (default) and max_b_frames is 8 (default) and decoder
may followed by VPP, use NumFrameSuggest + 16 to set init_pool_size.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
Signed-off-by: Guangxin Xu <guangxin.xu@intel.com>
Diffstat (limited to 'libavcodec/dca_lbr.c')
0 files changed, 0 insertions, 0 deletions