1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavformat
Andreas Rheinhardt 430cf25553 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>
2020-07-02 01:01:30 +02:00
..
2019-03-14 16:53:57 +01:00
2020-07-01 22:27:58 +02:00
2018-08-14 22:06:30 +05:30
2018-05-21 19:43:04 -03:00
2018-05-21 19:43:04 -03:00
2018-10-13 15:40:08 +02:00
2019-06-27 17:50:47 +02:00
2019-06-29 20:32:14 +02:00
2019-06-27 17:50:47 +02:00
2020-01-06 11:30:42 +01:00