aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/sdl2.c
diff options
context:
space:
mode:
authorTong Wu <tong1.wu@intel.com>2024-01-11 14:31:20 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2024-01-26 09:22:12 +0800
commit8b41e9cfbe64c95c04d131632f099910296db48b (patch)
tree0e6c0cb56bef3bcd4a943f03e5acce829df76db3 /libavdevice/sdl2.c
parentac06190a5a11f2b170e7719d769d7c0d65bff3e0 (diff)
downloadffmpeg-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 'libavdevice/sdl2.c')
0 files changed, 0 insertions, 0 deletions