projects
/
profile
/
ivi
/
vaapi-intel-driver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab53aaf
)
Fix subpictures formats array terminator.
author
Gwenole Beauchesne
<gbeauchesne@splitted-desktop.com>
Wed, 4 Nov 2009 12:13:41 +0000
(12:13 +0000)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Mon, 12 Jul 2010 05:25:49 +0000
(13:25 +0800)
i965_drv_video.c
patch
|
blob
|
history
diff --git
a/i965_drv_video.c
b/i965_drv_video.c
index
ace2181
..
40b1d81
100644
(file)
--- a/
i965_drv_video.c
+++ b/
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; i
965_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 ?