diff options
author | wm4 <nfxjfg@googlemail.com> | 2015-02-03 14:41:10 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-17 19:43:18 +0100 |
commit | c7dc73a6c3339c525d62498964a707936ff838fc (patch) | |
tree | 050e5e5631dfd8afb4f9dd06ca3475ad06beedf3 /libavfilter/unsharp_opencl_kernel.h | |
parent | 4f2299b6b55f1eb71347573614238f961fc00cb3 (diff) | |
download | ffmpeg-c7dc73a6c3339c525d62498964a707936ff838fc.tar.gz |
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 <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6a0cd529a35190d9374b0b26504e71857cd67b83)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/unsharp_opencl_kernel.h')
0 files changed, 0 insertions, 0 deletions