avformat/movenc: Don't free AVCodecParameters manually

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
pull/355/head
Andreas Rheinhardt 4 years ago
parent c9ceec1f1f
commit 0336bbf68a
  1. 4
      libavformat/movenc.c

@ -6263,9 +6263,7 @@ static void mov_free(AVFormatContext *s)
return;
if (mov->chapter_track) {
if (mov->tracks[mov->chapter_track].par)
av_freep(&mov->tracks[mov->chapter_track].par->extradata);
av_freep(&mov->tracks[mov->chapter_track].par);
avcodec_parameters_free(&mov->tracks[mov->chapter_track].par);
}
for (i = 0; i < mov->nb_streams; i++) {

Loading…
Cancel
Save