avformat/subtitles: Check nb_subs in ff_subtitles_queue_finalize()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 Oct 2019 15:10:38 +0000 (17:10 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Oct 2019 18:00:59 +0000 (20:00 +0200)
commit81b53913bbb97234e22187d1122948c351a3466d
treeb40bfb35ed120f28cf228123c8847a8f476c9797
parent22bec0d33f4231487547581a1f77e2e8e6eade88
avformat/subtitles: Check nb_subs in ff_subtitles_queue_finalize()

Fixes: null pointer dereference
Fixes: 17828/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5645915116797952
Fixes: Ticket8147

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/subtitles.c