avformat/dvdvideodec: Only free allocated buffers

Reviewed-by: Marth64 <marth64@proxyid.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-03-02 16:40:18 +01:00
parent e30dd9bbac
commit 77b26bf4b6

View File

@ -1202,7 +1202,6 @@ static void dvdvideo_subdemux_close(AVFormatContext *s)
DVDVideoDemuxContext *c = s->priv_data;
av_freep(&c->mpeg_pb.pub.buffer);
av_freep(&c->mpeg_pb);
avformat_close_input(&c->mpeg_ctx);
}