Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285393
b: refs/heads/master
c: c3cd257
h: refs/heads/master
i:
  285391: 20fc256
v: v3
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed Dec 20, 2011
1 parent 3928e8e commit 2e616c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22db44cb9cd67d56b02b2b5dceb10d3d1361b28b
refs/heads/master: c3cd257402fdcd650816ec25b83480a24912430a
8 changes: 4 additions & 4 deletions trunk/drivers/media/video/omap3isp/ispvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ static void isp_video_pix_to_mbus(const struct v4l2_pix_format *pix,
mbus->width = pix->width;
mbus->height = pix->height;

for (i = 0; i < ARRAY_SIZE(formats); ++i) {
/* Skip the last format in the loop so that it will be selected if no
* match is found.
*/
for (i = 0; i < ARRAY_SIZE(formats) - 1; ++i) {
if (formats[i].pixelformat == pix->pixelformat)
break;
}

if (WARN_ON(i == ARRAY_SIZE(formats)))
return;

mbus->code = formats[i].code;
mbus->colorspace = pix->colorspace;
mbus->field = pix->field;
Expand Down

0 comments on commit 2e616c1

Please sign in to comment.