diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-11-27 12:16:02 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-01-04 11:48:17 +0100 |
commit | a0b5aaceca3a339f0027e8733e604020bd09e998 (patch) | |
tree | 8010dab23e61928f5e52574c7f5c5a9550344c5d /libavdevice/libcdio.c | |
parent | 7399e5305ca9a77ea4d3ffa692477a330d7d2c08 (diff) | |
download | ffmpeg-a0b5aaceca3a339f0027e8733e604020bd09e998.tar.gz |
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 'libavdevice/libcdio.c')
0 files changed, 0 insertions, 0 deletions