diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-01-07 14:55:47 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-03 16:14:43 +0200 |
commit | c9a8def8f23a024e0bce2ce7fe55f115a2fbc98e (patch) | |
tree | 20b74a6cea9782c19f59889aa302b94fc2ad82b0 /libavformat/segment.c | |
parent | a936072932d582fdc5096da49da45252a7328a3f (diff) | |
download | ffmpeg-c9a8def8f23a024e0bce2ce7fe55f115a2fbc98e.tar.gz |
avformat/utils: Fix memleaks in avformat_open_input()
A demuxer might have allocated memory while reading the header. If
reading the header was successfull and an error happens before returning
(e.g. when queueing the attached pictures), the read_close function
would have never been called, so that all those allocations would leak.
This commit changes this.
Furthermore, there would be even more memleaks if the error level was
set to AV_EF_EXPLODE in case there is both metadata and id3v2 metadata.
This has been fixed, too.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit e2307f4ff197646a7feee0edbcdd2d3262932676)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/segment.c')
0 files changed, 0 insertions, 0 deletions