Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85735
b: refs/heads/master
c: 0ed4a6e
h: refs/heads/master
i:
  85733: e366fc0
  85731: b0aee7b
  85727: 8571c94
v: v3
  • Loading branch information
Oliver Endriss authored and Mauro Carvalho Chehab committed Feb 18, 2008
1 parent 7d6f37f commit 2991770
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 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: 251130bf266000fe6e9fdccda50fe4b5c1d6cb24
refs/heads/master: 0ed4a6ea9dbd9f5b77ce594f7f46be022d2c49ec
15 changes: 14 additions & 1 deletion trunk/drivers/media/dvb/ttpci/av7110_av.c
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ static u8 iframe_header[] = { 0x00, 0x00, 0x01, 0xe0, 0x00, 0x00, 0x80, 0x00, 0x
static int play_iframe(struct av7110 *av7110, char __user *buf, unsigned int len, int nonblock)
{
int i, n;
int progressive = 0;

dprintk(2, "av7110:%p, \n", av7110);

Expand All @@ -974,6 +975,14 @@ static int play_iframe(struct av7110 *av7110, char __user *buf, unsigned int len
return -EBUSY;
}

for (i = 0; i < len - 5; i++) {
/* get progressive flag from picture extension */
if (buf[i] == 0x00 && buf[i+1] == 0x00 &&
buf[i+2] == 0x01 && (unsigned char)buf[i+3] == 0xb5 &&
(buf[i+4] & 0xf0) == 0x10)
progressive = buf[i+5] & 0x08;
}

/* setting n always > 1, fixes problems when playing stillframes
consisting of I- and P-Frames */
n = MIN_IFRAME / len + 1;
Expand All @@ -985,7 +994,11 @@ static int play_iframe(struct av7110 *av7110, char __user *buf, unsigned int len
dvb_play(av7110, buf, len, 0, 1);

av7110_ipack_flush(&av7110->ipack[1]);
return 0;

if (progressive)
return vidcom(av7110, AV_VIDEO_CMD_FREEZE, 1);
else
return 0;
}


Expand Down

0 comments on commit 2991770

Please sign in to comment.