Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208202
b: refs/heads/master
c: af5458b
h: refs/heads/master
v: v3
  • Loading branch information
Andy Shevchenko authored and Mauro Carvalho Chehab committed Aug 9, 2010
1 parent 586a0da commit 670c780
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: c75079cc2addedf958358b88306591a5f9c4fb00
refs/heads/master: af5458b91f99ce5a29f670379a6d7a9e69014def
12 changes: 4 additions & 8 deletions trunk/drivers/media/video/usbvideo/usbvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,19 +282,15 @@ static void usbvideo_OverlayChar(struct uvd *uvd, struct usbvideo_frame *frame,
};
unsigned short digit;
int ix, iy;
int value;

if ((uvd == NULL) || (frame == NULL))
return;

if (ch >= '0' && ch <= '9')
ch -= '0';
else if (ch >= 'A' && ch <= 'F')
ch = 10 + (ch - 'A');
else if (ch >= 'a' && ch <= 'f')
ch = 10 + (ch - 'a');
else
value = hex_to_bin(ch);
if (value < 0)
return;
digit = digits[ch];
digit = digits[value];

for (iy=0; iy < 5; iy++) {
for (ix=0; ix < 3; ix++) {
Expand Down

0 comments on commit 670c780

Please sign in to comment.