mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/movenc: Don't free AVCodecParameters manually
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
c9ceec1f1f
commit
0336bbf68a
|
@ -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…
Reference in New Issue