Commit 4976a341 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg4videodec: Fix GMC with videos of dimension 1

Fixes: runtime error: shift exponent -1 is negative
Fixes: 2338/clusterfuzz-testcase-minimized-5153426541379584

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 97f7f831
...@@ -171,7 +171,7 @@ static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *g ...@@ -171,7 +171,7 @@ static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *g
int a = 2 << s->sprite_warping_accuracy; int a = 2 << s->sprite_warping_accuracy;
int rho = 3 - s->sprite_warping_accuracy; int rho = 3 - s->sprite_warping_accuracy;
int r = 16 / a; int r = 16 / a;
int alpha = 0; int alpha = 1;
int beta = 0; int beta = 0;
int w = s->width; int w = s->width;
int h = s->height; int h = s->height;
......
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