Browse Source

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: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ab998f4c7f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.4.14
Michael Niedermayer 9 years ago
parent
commit
02d1d31eaa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264_mvpred.h

+ 1
- 1
libavcodec/h264_mvpred.h View File

@@ -243,7 +243,7 @@ static av_always_inline void pred_8x16_motion(H264Context *const h,
if (IS_INTERLACED(type)) { \
refn >>= 1; \
AV_COPY32(mvbuf[idx], mvn); \
mvbuf[idx][1] <<= 1; \
mvbuf[idx][1] *= 2; \
mvn = mvbuf[idx]; \
} \
} \


Loading…
Cancel
Save