Commit 98aec8c1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h274: Fix signed left shift

Fixes: 39463/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5736517629247488

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 849138f4
......@@ -145,8 +145,8 @@ static void deblock_8x8_c(int8_t *out, const int out_stride)
for (int y = 0; y < 8; y++) {
const int8_t l1 = out[-2], l0 = out[-1];
const int8_t r0 = out[0], r1 = out[1];
out[0] = (l0 + (r0 << 1) + r1) >> 2;
out[-1] = (r0 + (l0 << 1) + l1) >> 2;
out[0] = (l0 + r0 * 2 + r1) >> 2;
out[-1] = (r0 + l0 * 2 + l1) >> 2;
out += out_stride;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment