aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aac_adtstoasc_bsf.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2023-06-25 02:42:29 +0200
committerLynne <dev@lynne.ee>2023-06-25 03:11:38 +0200
commitc39e861a3d42c2beeae5d87fa8ddf87c36fac9b1 (patch)
treea7541107858b2e6c024002eb6e0fc26541142655 /libavcodec/aac_adtstoasc_bsf.c
parent10f1bbfe117e990a6fe56c03085966fa0c0f0f2e (diff)
downloadffmpeg-c39e861a3d42c2beeae5d87fa8ddf87c36fac9b1.tar.gz
vulkan_h264: check if slices_buf exists on end_frame
The issue is that while decode_slice is guaranteed to never get called without start_frame, end_frame is not. Moreover, it is not guaranteed it won't be called twice. On a badly-broken sample, this is what happens, which leads to a segfault, as vp->slices_buf doesn't exist, as it has been handed off for decoding already and isn't owned by the frame. Return an error as it's indicative that it's a corrupt stream rather than just missing any slices. Prevents a segfault.
Diffstat (limited to 'libavcodec/aac_adtstoasc_bsf.c')
0 files changed, 0 insertions, 0 deletions