Skip to content
Snippets Groups Projects
Commit ab998f4c authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/h264_mvpred: Fix multiple runtime error: left shift of negative value

Fixes: 710/clusterfuzz-testcase-5091051431788544

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg


Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent d23727e0
No related branches found
No related tags found
No related merge requests found
...@@ -248,7 +248,7 @@ static av_always_inline void pred_8x16_motion(const H264Context *const h, ...@@ -248,7 +248,7 @@ static av_always_inline void pred_8x16_motion(const H264Context *const h,
if (IS_INTERLACED(type)) { \ if (IS_INTERLACED(type)) { \
refn >>= 1; \ refn >>= 1; \
AV_COPY32(mvbuf[idx], mvn); \ AV_COPY32(mvbuf[idx], mvn); \
mvbuf[idx][1] <<= 1; \ mvbuf[idx][1] *= 2; \
mvn = mvbuf[idx]; \ mvn = mvbuf[idx]; \
} \ } \
} \ } \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment