]> git.sesse.net Git - ffmpeg/commit
avcodec/movtextenc: Reset array counter after freeing array
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 16 Oct 2020 11:47:56 +0000 (13:47 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 19 Oct 2020 19:36:57 +0000 (21:36 +0200)
commit8d4431955ccca80933a837e1bc7f44679039335b
tree44fef95d7f7360e2d29e1de468914a66f2baa7b3
parent56b3726ed2ac89df31a939a8f5f00fa66a0ad2ed
avcodec/movtextenc: Reset array counter after freeing array

Otherwise the mov_text encoder can segfault when given subtitles with more
than one AVSubtitleRect if one of the first nb_rects - 1 rects contained
a style attribute.

Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/movtextenc.c