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-01 21:33:27 +0200 |
commit | bb03a54e408cb95446b6f85e3f3273a1a366a3d3 (patch) | |
tree | ff7a524646c4c177f02ab67e8ae78078edac2a8a /libavfilter/vf_vibrance.c | |
parent | ecfe87bdef2d533cd11046b152766ef39f737fa7 (diff) | |
download | ffmpeg-bb03a54e408cb95446b6f85e3f3273a1a366a3d3.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 'libavfilter/vf_vibrance.c')
0 files changed, 0 insertions, 0 deletions