summaryrefslogtreecommitdiff
path: root/vpxdec.c
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-10-20 23:51:58 -0700
committerDeb Mukherjee <debargha@google.com>2014-10-21 00:35:07 -0700
commitbec307acdaffe81b227a346d733b4baab3dfe12a (patch)
tree1cb2e3f78a256d114197618532f7fce60dda1bfb /vpxdec.c
parent687c56e8026978f8ccfd5b3fbfee4dbd1de466e1 (diff)
downloadlibvpx-bec307acdaffe81b227a346d733b4baab3dfe12a.tar
libvpx-bec307acdaffe81b227a346d733b4baab3dfe12a.tar.gz
libvpx-bec307acdaffe81b227a346d733b4baab3dfe12a.tar.bz2
libvpx-bec307acdaffe81b227a346d733b4baab3dfe12a.zip
Adding test vectors for profile 2 and 3
Also adds mising test vectors for profile 1. Change-Id: I5269af8b9e6b708ce50a0d9c69b6cae4bb2870dc
Diffstat (limited to 'vpxdec.c')
-rw-r--r--vpxdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vpxdec.c b/vpxdec.c
index 2afdb715b..c4d2a9e7b 100644
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -276,7 +276,8 @@ static void update_image_md5(const vpx_image_t *img, const int planes[3],
const int plane = planes[i];
const unsigned char *buf = img->planes[plane];
const int stride = img->stride[plane];
- const int w = vpx_img_plane_width(img, plane);
+ const int w = vpx_img_plane_width(img, plane) *
+ ((img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1);
const int h = vpx_img_plane_height(img, plane);
for (y = 0; y < h; ++y) {