Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219537
b: refs/heads/master
c: 910f5f0
h: refs/heads/master
i:
  219535: 71ffa82
v: v3
  • Loading branch information
Dr. David Alan Gilbert authored and Mauro Carvalho Chehab committed Oct 25, 2010
1 parent b0ad28b commit 32d2bd5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: 52fae5eead706cb8d604ee634162f6694d75ccad
refs/heads/master: 910f5f05f99c1ffbb484c4e6eb2a460e7a08e2d7
13 changes: 10 additions & 3 deletions trunk/drivers/media/video/v4l1-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,16 @@ static noinline long v4l1_compat_get_picture(
goto done;
}

pict->depth = ((fmt->fmt.pix.bytesperline << 3)
+ (fmt->fmt.pix.width - 1))
/ fmt->fmt.pix.width;
if (fmt->fmt.pix.width)
{
pict->depth = ((fmt->fmt.pix.bytesperline << 3)
+ (fmt->fmt.pix.width - 1))
/ fmt->fmt.pix.width;
} else {
err = -EINVAL;
goto done;
}

pict->palette = pixelformat_to_palette(
fmt->fmt.pix.pixelformat);
done:
Expand Down

0 comments on commit 32d2bd5

Please sign in to comment.