mirror of https://github.com/FFmpeg/FFmpeg.git
av_add_index_entry() can fail, for example because the parameters are invalid, or because memory allocation fails. Check this; it can actually happen with corrupted files. The second hunk is just for robustness. Just in case functions like ff_reduce_index() remove entries. (Not sure if this can actually happen.) Fixes ticket #4294. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>pull/115/head^2
parent
22504396fe
commit
6a0cd529a3
1 changed files with 9 additions and 2 deletions
Loading…
Reference in new issue