[FFmpeg-devel] [libav-devel] [PATCH] svq1enc: fix out of bounds reads
Andreas Cadhalpun
andreas.cadhalpun at googlemail.com
Thu Jan 21 23:35:24 CET 2016
On 21.01.2016 23:24, Luca Barbato wrote:
> On 21/01/16 23:04, Andreas Cadhalpun wrote:
>> level can be up to 5, but there are only four codebooks.
>>
>> Fixes ubsan runtime error: index 5 out of bounds for type 'int8_t
>> [4][96]'
>>
>> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
>> ---
>> libavcodec/svq1enc.c | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> What is the level 5?
Each block size is assigned a level [1]:
level 5 16x16
level 4 16x8
level 3 8x8
level 2 8x4
level 1 4x4
level 0 4x2
Best regards,
Andreas
1: http://wiki.multimedia.cx/index.php?title=Sorenson_Video_1
More information about the ffmpeg-devel
mailing list