summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db004ba)
raw | patch | inline | side by side (parent: db004ba)
author | Rob Clark <rob@ti.com> | |
Mon, 23 Jul 2012 16:35:06 +0000 (11:35 -0500) | ||
committer | Rob Clark <rob@ti.com> | |
Mon, 23 Jul 2012 16:35:06 +0000 (11:35 -0500) |
If color format for CRTC layer is not specified on commandline, then
c->fourcc is unintialized resulting in addfb call failing.
Signed-off-by: Rob Clark <rob@ti.com>
c->fourcc is unintialized resulting in addfb call failing.
Signed-off-by: Rob Clark <rob@ti.com>
tests/modetest/modetest.c | patch | blob | history |
index 3e74008e98d3aea1e432744dcb19f20a3abc7089..e0fd66ca26148cd2c29f9cd92d46e97b04b53bd8 100644 (file)
if (*p == '@') {
strncpy(c->format_str, p + 1, 4);
c->format_str[4] = '\0';
+ }
- c->fourcc = format_fourcc(p + 1);
- if (c->fourcc == 0) {
- fprintf(stderr, "unknown format %s\n", c->format_str);
- return -1;
- }
+ c->fourcc = format_fourcc(c->format_str);
+ if (c->fourcc == 0) {
+ fprintf(stderr, "unknown format %s\n", c->format_str);
+ return -1;
}
return 0;