aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2014-01-07 07:24:03 -0500
committerAnton Khirnov <anton@khirnov.net>2016-08-03 11:07:15 +0200
commit0df4801105d84883071b0978cb3afc7cd5184ce8 (patch)
treec9419b2ae3e4e708e0623c09e173a744ad52ed46
parent24a362569bff1d4161742fffaca80a4a4428be8a (diff)
downloadffmpeg-0df4801105d84883071b0978cb3afc7cd5184ce8.tar.gz
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>
-rw-r--r--libavcodec/vp9.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp9.h b/libavcodec/vp9.h
index b83bd618d4..31509bfbc5 100644
--- a/libavcodec/vp9.h
+++ b/libavcodec/vp9.h
@@ -402,7 +402,7 @@ typedef struct VP9Context {
DECLARE_ALIGNED(32, int16_t, uvblock)[2][1024];
uint8_t eob[256];
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_uv)[2][32 * 32];
} VP9Context;