Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300254
b: refs/heads/master
c: 788ab1b
h: refs/heads/master
v: v3
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed May 8, 2012
1 parent 70f4f67 commit 4b0c9ca
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: f36c7d9e9d745b3f60f79bdf53f160047c8262c6
refs/heads/master: 788ab1bb03d304232711b6ca9718534f588ee9fc
8 changes: 4 additions & 4 deletions trunk/drivers/media/video/gspca/sonixj.c
Original file line number Diff line number Diff line change
Expand Up @@ -2923,6 +2923,10 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
* not the JPEG end of frame ('ff d9').
*/

/* count the packets and their size */
sd->npkt++;
sd->pktsz += len;

/*fixme: assumption about the following code:
* - there can be only one marker in a packet
*/
Expand All @@ -2945,10 +2949,6 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
data += i;
}

/* count the packets and their size */
sd->npkt++;
sd->pktsz += len;

/* search backwards if there is a marker in the packet */
for (i = len - 1; --i >= 0; ) {
if (data[i] != 0xff) {
Expand Down

0 comments on commit 4b0c9ca

Please sign in to comment.