Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357122
b: refs/heads/master
c: c02ec71
h: refs/heads/master
v: v3
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Dec 22, 2012
1 parent ebc0e87 commit a6c9daa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: 2f5741aa6a71aea6bc8f186e8753f270ae8742f1
refs/heads/master: c02ec71b014ea7bc6f50deb9db765bf57d593c53
16 changes: 7 additions & 9 deletions trunk/drivers/media/usb/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,10 @@ static void em28xx_copy_video(struct em28xx *dev,
startread = p;
remain = len;

if (dev->progressive)
if (dev->progressive || buf->top_field)
fieldstart = outp;
else {
/* Interlaces two half frames */
if (buf->top_field)
fieldstart = outp;
else
fieldstart = outp + bytesperline;
}
else /* interlaced mode, even nr. of lines */
fieldstart = outp + bytesperline;

linesdone = dma_q->pos / bytesperline;
currlinedone = dma_q->pos % bytesperline;
Expand Down Expand Up @@ -243,7 +238,10 @@ static void em28xx_copy_video(struct em28xx *dev,
remain -= lencopy;

while (remain > 0) {
startwrite += lencopy + bytesperline;
if (dev->progressive)
startwrite += lencopy;
else
startwrite += lencopy + bytesperline;
startread += lencopy;
if (bytesperline > remain)
lencopy = remain;
Expand Down

0 comments on commit a6c9daa

Please sign in to comment.