summaryrefslogtreecommitdiffstats
path: root/libavformat/takdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-09-24 18:31:44 +0200
committerJames Almer <jamrial@gmail.com>2019-09-25 20:53:01 -0300
commit66d5e43b9909804511a3e1fb65f6f0bbb0264eb3 (patch)
tree8d1451a8d39187a0ca479e71578d5a24f85c9e3a /libavformat/takdec.c
parente045be92cdf5a2851900e8e85b815c29ae6f100a (diff)
downloadffmpeg-streaming-66d5e43b9909804511a3e1fb65f6f0bbb0264eb3.zip
ffmpeg-streaming-66d5e43b9909804511a3e1fb65f6f0bbb0264eb3.tar.gz
avformat/utils: Fix memleaks
ff_read_packet had potential memleaks: 1. If av_packet_make_refcounted fails, it means that the packet is not refcounted, but it could nevertheless carry side data and therefore needs to be unreferenced. 2. If putting a packet on a packet list fails, it wasn't unreferenced. Furthermore, read_frame_internal leaked a packet's (side) data if a context update was required and failed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/takdec.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud