• Andreas Rheinhardt's avatar
    avformat/avidec: Fix memleak with embedded GAB2 subtitles · da44bbef
    Andreas Rheinhardt authored
    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: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    da44bbef
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...