diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-03-27 08:31:29 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-01 23:59:18 +0200 |
commit | ebe90fbb742bb6e23a7df5cb8b10d7f1ded5a54b (patch) | |
tree | de04b6e049ab289332bac3bbd4f51f9ccb33bc4e /libavfilter/opencl.h | |
parent | 81e1872b478dc79e853a9f6175f0d57c70ccbfab (diff) | |
download | ffmpeg-ebe90fbb742bb6e23a7df5cb8b10d7f1ded5a54b.tar.gz |
avformat/avidec: Fix memleak with embedded GAB2 subtitles
The code for GAB2 subtitles predates refcounting AVPackets. So in order
to transfer the ownership of a packet's data pkt->data was simply stored
and the packet zeroed; in the end (i.e. in the read_close-function) this
data was then simply freed with av_freep(). This of course leads to a leak
of an AVBufferRef and an AVBuffer. It has been fixed by keeping and
eventually unreferencing the packet's buf instead.
Additionally, the packet is now reset via av_packet_unref().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit da44bbefaabeb2fdb58a03fe533a44aa150486fc)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/opencl.h')
0 files changed, 0 insertions, 0 deletions