mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/matroskaenc: Fix memleak upon encountering bogus chapter
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit cb255b616c
)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
e822ee6ebe
commit
e139aaa32f
|
@ -1498,6 +1498,7 @@ static int mkv_write_chapters(AVFormatContext *s)
|
|||
av_log(s, AV_LOG_ERROR,
|
||||
"Invalid chapter start (%"PRId64") or end (%"PRId64").\n",
|
||||
chapterstart, chapterend);
|
||||
ffio_free_dyn_buf(&dyn_cp);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue