avformat/dvdvideodec: Only free allocated buffers

Reviewed-by: Marth64 <marth64@proxyid.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.0
Andreas Rheinhardt 12 months ago
parent e30dd9bbac
commit 77b26bf4b6
  1. 1
      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);
}

Loading…
Cancel
Save