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: NAndreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
Showing
想要评论请 注册 或 登录