[FFmpeg-cvslog] avformat/movenc: Don't free AVCodecParameters manually
Andreas Rheinhardt
git at videolan.org
Mon Oct 5 02:48:39 EEST 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Mon Sep 28 13:30:07 2020 +0200| [0336bbf68a047854308e812fc21f45e00aff6ed0] | committer: Andreas Rheinhardt
avformat/movenc: Don't free AVCodecParameters manually
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0336bbf68a047854308e812fc21f45e00aff6ed0
---
libavformat/movenc.c | 4 +---
1 file changed, 1 insertion(+), 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++) {
More information about the ffmpeg-cvslog
mailing list