summaryrefslogtreecommitdiff
path: root/libavcodec/elsdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-11-27 12:16:02 +0100
committerAnton Khirnov <anton@khirnov.net>2022-11-28 10:34:10 +0100
commit6376fbfd37ebf1bc2c8c7553283f4dfd5134deb3 (patch)
tree37aea19220b9959c2bd5242d053cc745ef2932d9 /libavcodec/elsdec.c
parent9b1d8959d422d31192be0973049d463d565a5108 (diff)
lavc/libx265: restructure handling reordered_opaque
Current code stores a pointer to allocated data in libx265 and frees it when the encoded packet is retrieved. This will leak if the packet is never retrieved, e.g. if the encoder is closed without being flushed. Restructure the code such that only indices to an array stored in our private data are given to libx265. This ensures no allocated memory can be lost.
Diffstat (limited to 'libavcodec/elsdec.c')
0 files changed, 0 insertions, 0 deletions