diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-14 00:37:40 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-03 14:13:43 +0200 |
commit | 19b1f676f66ec26afb2c9c9501d5451847a7c9b5 (patch) | |
tree | 4c1f4305b6afde22f0f9078b08d97b283fe8614a /libavformat/segment.c | |
parent | da59fe3eea93e6a3ba48ebb60e151ba7f303c1e6 (diff) | |
download | ffmpeg-19b1f676f66ec26afb2c9c9501d5451847a7c9b5.tar.gz |
avformat/mov: Fix memleaks upon read_header failure
By default, a demuxer's read_close function is not called automatically
if an error happens when reading the header; instead it is up to the
demuxer to clean up after itself in this case. The mov demuxer did this
by calling its read_close function when it encountered some errors when
reading the header. Yet for other errors (mostly adding side-data to
streams) this has been forgotten, so that all the internal structures
of the demuxer leak.
This commit fixes this by making sure mov_read_close is called when
necessary.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit ac378c535be907ee383dafb430be7216a2920982)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/segment.c')
0 files changed, 0 insertions, 0 deletions