]> git.sesse.net Git - ffmpeg/commit
avcodec/movtextenc: Don't presume every style to have a font
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 16 Oct 2020 14:33:23 +0000 (16:33 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 19 Oct 2020 19:37:15 +0000 (21:37 +0200)
commit0dd7b8232d38317abc195edc48434ac1fd3e80fd
tree16cebf6febb9546f8097de8c45e5828bc0f5dfda
parent8d4431955ccca80933a837e1bc7f44679039335b
avcodec/movtextenc: Don't presume every style to have a font

Fixes segfaults in the absence of fonts; this can happen because the
file didn't contain any or because the allocation of the font-string
failed.

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