diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-09-24 18:31:44 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-20 10:51:30 +0200 |
commit | f2117e1e9c5c87e794d6dff872d48026cf24db2f (patch) | |
tree | e7e0880bd1d773ffcb7bdd04db79e1ebc035518d /libavcodec | |
parent | 2c884238571efe97e1add6e42efc9e6f6cb8f706 (diff) | |
download | ffmpeg-f2117e1e9c5c87e794d6dff872d48026cf24db2f.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>
(cherry picked from commit 66d5e43b9909804511a3e1fb65f6f0bbb0264eb3)
Diffstat (limited to 'libavcodec')
0 files changed, 0 insertions, 0 deletions