diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-01-15 00:17:10 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-01-15 23:48:33 +0100 |
commit | 564dd3f0f40008be8943af59686c0e8c4d67dd08 (patch) | |
tree | 6db9a4e8c99846d8b09936174ecfa0196541ce74 /ffmpeg_opt.c | |
parent | 5989add4ab4e8e4daa406a66319b0a3b3faaa73d (diff) | |
download | ffmpeg-564dd3f0f40008be8943af59686c0e8c4d67dd08.tar.gz |
mpeg4videodec: silence ubsan warning
s->ac_val[0][0] is of type 'int16_t [16]', but points into a larger buffer.
Here it is used as base pointer to find the correct position in the
larger buffer by adding 's->block_index[n] * 16' and thus as 'int16_t *'.
This fixes clang's ubsan runtime error: index out of bounds for type
'int16_t [16]'
Fixes: test_case.mp4
Found-by: Tyson Smith <twsmith@mozilla.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'ffmpeg_opt.c')
0 files changed, 0 insertions, 0 deletions