vp9: make mv bounds 32bit.

The frame dimensions are 16bit, so the mv bounds can easily overflow
int16 for large videos.

Bug-Id: Handbrake/46
CC: libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Ronald S. Bultje 2014-01-07 07:24:03 -05:00 committed by Anton Khirnov
parent 24a362569b
commit 0df4801105
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ typedef struct VP9Context {
DECLARE_ALIGNED(32, int16_t, uvblock)[2][1024]; DECLARE_ALIGNED(32, int16_t, uvblock)[2][1024];
uint8_t eob[256]; uint8_t eob[256];
uint8_t uveob[2][64]; uint8_t uveob[2][64];
VP56mv min_mv, max_mv; struct { int x, y; } min_mv, max_mv;
DECLARE_ALIGNED(32, uint8_t, tmp_y)[64 * 64]; DECLARE_ALIGNED(32, uint8_t, tmp_y)[64 * 64];
DECLARE_ALIGNED(32, uint8_t, tmp_uv)[2][32 * 32]; DECLARE_ALIGNED(32, uint8_t, tmp_uv)[2][32 * 32];
} VP9Context; } VP9Context;