summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-11-27 12:16:02 +0100
committerAnton Khirnov <anton@khirnov.net>2023-01-04 11:48:17 +0100
commita0b5aaceca3a339f0027e8733e604020bd09e998 (patch)
tree8010dab23e61928f5e52574c7f5c5a9550344c5d /libswresample
parent7399e5305ca9a77ea4d3ffa692477a330d7d2c08 (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 'libswresample')
0 files changed, 0 insertions, 0 deletions