aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-28 13:30:07 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-05 00:48:55 +0200
commit0336bbf68a047854308e812fc21f45e00aff6ed0 (patch)
treee6e6d27f532f24c72eedc5676b778703c3682c6f
parentc9ceec1f1fdd7d705961c0fb3247567cbdc3deb5 (diff)
downloadffmpeg-0336bbf68a047854308e812fc21f45e00aff6ed0.tar.gz
avformat/movenc: Don't free AVCodecParameters manually
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavformat/movenc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index a8333953bc..7256eb2a0f 100644
--- a/libavformat/movenc.c
+++ b/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++) {