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/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
97f7f83169
commit
4976a3411f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user