summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-11-04 12:13:41 +0000
committerXiang, Haihao <haihao.xiang@intel.com>2010-07-12 13:25:49 +0800
commit5ab4bfbf4569a71fa883e8f63b61dacbb6ef31b4 (patch)
tree25eba17dd8cf4eebe942d2ae269eceddd98e28e8
parent4916645f3d29804a085994ccfb352525708d1ae3 (diff)
downloadlibva-5ab4bfbf4569a71fa883e8f63b61dacbb6ef31b4.tar.gz
Fix subpictures formats array terminator.
-rw-r--r--i965_drv_video/i965_drv_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c
index ace2181..40b1d81 100644
--- a/i965_drv_video/i965_drv_video.c
+++ b/i965_drv_video/i965_drv_video.c
@@ -76,7 +76,7 @@ static const i965_subpic_format_map_t *
get_subpic_format(const VAImageFormat *va_format)
{
unsigned int i;
- for (i = 0; i < sizeof(i965_subpic_formats_map)/sizeof(i965_subpic_formats_map[0]); i++) {
+ for (i = 0; i965_subpic_formats_map[i].type != 0; i++) {
const i965_subpic_format_map_t * const m = &i965_subpic_formats_map[i];
if (m->va_format.fourcc == va_format->fourcc &&
(m->type == I965_SURFACETYPE_RGBA ?