aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/extract_mvs.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-17 10:15:29 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:58 +0100
commit2e49daad795832b23325e9294f9444928a5b5cb3 (patch)
tree76242e40f757d79ed3764b161b2580cee8f3dad4 /doc/examples/extract_mvs.c
parent9c6feb104d61c550fc77e8866705bdffc8de8736 (diff)
downloadffmpeg-2e49daad795832b23325e9294f9444928a5b5cb3.tar.gz
avcodec/movtextdec: Reset counter of fonts when freeing them
If allocating fonts fails when reading the header, all fonts are freed, yet the counter of fonts is not reset and no error is returned; when subtitles are decoded lateron, the inexistent list of fonts is searched for the matching font for this particular entry which of course leads to a segfault. Reviewed-by: Philip Langdale <philipl@overt.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 5758620560f1aa329a26ca1585dc0dbd903522c4)
Diffstat (limited to 'doc/examples/extract_mvs.c')
0 files changed, 0 insertions, 0 deletions