diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-15 22:21:20 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-16 03:23:18 +0300 |
commit | a6eb006ad47beb6d5e5cc2c99f8185965209ec6b (patch) | |
tree | 18ebefef318fc1326ef6a1c4d2e51828dc22c037 /libavcodec/svq3.c | |
parent | f08122fbe039a56ab3c24f74636b4b0efea97d85 (diff) |
avcodec/svq3: Fix runtime error: left shift of negative value -6
Fixes: 1604/clusterfuzz-testcase-minimized-5312060206350336
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r-- | libavcodec/svq3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 4814b80c3a..a766fa49ad 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -524,8 +524,8 @@ static inline int svq3_mc_dir(SVQ3Context *s, int size, int mode, if (mode != PREDICT_MODE) { svq3_pred_motion(s, k, part_width >> 2, dir, 1, &mx, &my); } else { - mx = s->next_pic->motion_val[0][b_xy][0] << 1; - my = s->next_pic->motion_val[0][b_xy][1] << 1; + mx = s->next_pic->motion_val[0][b_xy][0] * 2; + my = s->next_pic->motion_val[0][b_xy][1] * 2; if (dir == 0) { mx = mx * s->frame_num_offset / |