diff options
author | Tong Wu <tong1.wu@intel.com> | 2024-01-11 14:31:20 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2024-01-26 09:22:12 +0800 |
commit | 8b41e9cfbe64c95c04d131632f099910296db48b (patch) | |
tree | 0e6c0cb56bef3bcd4a943f03e5acce829df76db3 /libavcodec/vp9_superframe_bsf.c | |
parent | ac06190a5a11f2b170e7719d769d7c0d65bff3e0 (diff) | |
download | ffmpeg-8b41e9cfbe64c95c04d131632f099910296db48b.tar.gz |
avcodec/d3d12va_decode: check existance before assigning a new index
Fixes #10759.
It can happen in H.264, MPEG2, VC1 that the current frame resource
memory is already in ref_resource. For example, for a interlaced frame,
the same curr memory is passed twice. For the second time it could possibly
reference itself. When this happens the curr is already given an index and
in ref_resources. When the reference frame index is required, we should check
the existance in the ref_resources first before assigning a new index for it.
Signed-off-by: Tong Wu <tong1.wu@intel.com>
Diffstat (limited to 'libavcodec/vp9_superframe_bsf.c')
0 files changed, 0 insertions, 0 deletions