]> git.sesse.net Git - ffmpeg/commit
avformat/mpeg: Fix leaks of AVFormatContext and subtitle packets
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 4 Dec 2019 12:37:14 +0000 (13:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 5 Dec 2019 16:22:40 +0000 (17:22 +0100)
commit4825d8a98d4cddab8710055213e99e47cfd5257a
tree4e47d191656d622783b466306f0e4bdc8d627b9a
parentbc3cf2bbd320e1ade2791dca02b9ba947ca436ab
avformat/mpeg: Fix leaks of AVFormatContext and subtitle packets

If an error happens in vobsub_read_header() after allocating the
AVFormatContext intended to read the sub-file, both the AVFormatContext
as well as the data in the subtitles queues leaks. This has been fixed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpeg.c