diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-14 20:32:33 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:57 +0100 |
commit | 83cd7a29dccc37de4fe290b61300172d47a207d4 (patch) | |
tree | ca6cb9f9b5cfeb1eab5d551699f21d59c6ee529e /libavfilter/x86/vf_transpose.asm | |
parent | d0045b41a362c1724a0e0659d32b664becd4c2d8 (diff) | |
download | ffmpeg-83cd7a29dccc37de4fe290b61300172d47a207d4.tar.gz |
avcodec/ivi: Fix segfault on allocation error
If allocating the tiles array for indeo 4/5 fails, the context is in an
inconsistent state, because the counter for the number of tiles is > 0.
This will lead to a segfault when freeing the tiles' substructures.
Fix this by setting the number of tiles to zero if the allocation was
unsuccessful.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit e411a3af11e5d00a311f594a45c17f74898cb46e)
Diffstat (limited to 'libavfilter/x86/vf_transpose.asm')
0 files changed, 0 insertions, 0 deletions