aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-02 16:40:18 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-03 09:20:23 +0100
commit77b26bf4b63b186cf1ea040d1a0ffa593b6ae700 (patch)
treea2f1c043752a18ba4a139faf0d78033ab73223af
parente30dd9bbac2746d84a9c1f5fa34cec882785a1c2 (diff)
downloadffmpeg-77b26bf4b63b186cf1ea040d1a0ffa593b6ae700.tar.gz
avformat/dvdvideodec: Only free allocated buffers
Reviewed-by: Marth64 <marth64@proxyid.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/dvdvideodec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c
index ef2d4e6df4..f2f23affb2 100644
--- a/libavformat/dvdvideodec.c
+++ b/libavformat/dvdvideodec.c
@@ -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);
}