OSDN Git Service

test: fix jpeg decode invalid indexing
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Wed, 7 Sep 2016 19:22:44 +0000 (12:22 -0700)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 31 Oct 2016 01:58:56 +0000 (09:58 +0800)
commit6f8370edc4a864b5dbe9688124a09376558b74e6
treeaf5fec3dbd8370936205fd7ea7bfaf71695c1558
parent13e687cdf608b20ccc28b22aada5e06e79a116aa
test: fix jpeg decode invalid indexing

Use hsample and vsample factor in printComponentDataTo to
avoid invalid indexes into the data array.

This fixes a segfault in the jpeg fourcc tests that may be
triggered during 'make check'.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
(cherry picked from commit 871626e6ee3cc6e76b7ebb51fd84ace469c77346)
test/i965_jpeg_decode_test.cpp