On Mon, Sep 28, 2020 at 6:14 PM Andreas Rheinhardt <[email protected]> wrote: > > Signed-off-by: Andreas Rheinhardt <[email protected]> > --- > libavformat/movenc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavformat/movenc.c b/libavformat/movenc.c > index 63adae5e0a..a90bbfa458 100644 > --- a/libavformat/movenc.c > +++ b/libavformat/movenc.c > @@ -6254,6 +6254,9 @@ static void mov_free(AVFormatContext *s) > MOVMuxContext *mov = s->priv_data; > int i; > > + if (!mov->tracks) > + return; > + > if (mov->chapter_track) { > avcodec_parameters_free(&mov->tracks[mov->chapter_track].par); > } > -- > 2.25.1
LGTM. Jan _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
