Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avformat/tta: fix crash with corrupted files
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 <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 6a0cd52) Signed-off-by: Michael Niedermayer <[email protected]>
- Loading branch information