diff options
author | Johann <johannkoenig@google.com> | 2015-05-27 15:27:34 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2015-05-27 15:55:17 -0700 |
commit | 1e4473b216c1821cac91c9b68176e54df7846543 (patch) | |
tree | 43620ce0f0babea33b9fe079dbe798a183433b83 /vp9 | |
parent | ed93470a69818c6fd7994fecbcf7fb1a7e8d2ccd (diff) | |
download | libvpx-1e4473b216c1821cac91c9b68176e54df7846543.tar libvpx-1e4473b216c1821cac91c9b68176e54df7846543.tar.gz libvpx-1e4473b216c1821cac91c9b68176e54df7846543.tar.bz2 libvpx-1e4473b216c1821cac91c9b68176e54df7846543.zip |
Check size restrictions before running test vector
Change-Id: I60ea7724e6ab06fc658f678c1b76d984a43f5a5e
Diffstat (limited to 'vp9')
-rw-r--r-- | vp9/decoder/vp9_decodeframe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vp9/decoder/vp9_decodeframe.c b/vp9/decoder/vp9_decodeframe.c index fcf480b86..0e9b1c523 100644 --- a/vp9/decoder/vp9_decodeframe.c +++ b/vp9/decoder/vp9_decodeframe.c @@ -699,7 +699,8 @@ static void resize_context_buffers(VP9_COMMON *cm, int width, int height) { #if CONFIG_SIZE_LIMIT if (width > DECODE_WIDTH_LIMIT || height > DECODE_HEIGHT_LIMIT) vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME, - "Width and height beyond allowed size."); + "Dimensions of %dx%d beyond allowed size of %dx%d.", + width, height, DECODE_WIDTH_LIMIT, DECODE_HEIGHT_LIMIT); #endif if (cm->width != width || cm->height != height) { const int new_mi_rows = |