Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: [PATCH] (DVB-T) statmux fix vbr tagging for pic header
Oliver Endriss wrote:
>
> ...
> Ok, this is an experimental driver patch to fix the problem:
>
> --- av7110.c.org Sat May 17 05:12:30 2003
> +++ av7110.c Sat May 17 05:19:39 2003
> @@ -1116,6 +1116,8 @@ pes_play(void *dest, ring_buffer_t *buf,
> int len, split=0;
> u32 sync;
> u16 blen;
> + int i, ftype;
> + char *p;
>
> dprintk ("function : %s\n", __FUNCTION__);
> if (!dlen) {
> @@ -1165,6 +1167,20 @@ pes_play(void *dest, ring_buffer_t *buf,
>
> dprintk ("function: %s pread=%08x pwrite=%08x\n", __FUNCTION__,
> buf->pread, buf->pwrite);
> +
> + p = dest;
> + for (i = 0; i < blen-8; i++) {
> + if (p[i] == 0 && p[i+1] == 0 && p[i+2] == 1 && p[i+3] == 0) {
> + ftype = (p[i+5] >> 3) & 0x07;
> + if (ftype) {
> + //printk ("pic %d at %d/%d\n", ftype, i, blen);
> + p[i+5] |= 0x07;
> + p[i+6] |= 0xff;
> + p[i+7] |= 0xf8;
> + }
> + }
> + }
> +
> wake_up(&buf->queue);
> return blen;
> }
>
> Replay and transfer mode should work now. Please test!
>
> If it works I'll ask the firmware people to check whether it can be
> fixed in the firmware.
Just did a few tests (although I don't have any more recordings that
showed the "RTL bug") - can't see any negative effects so far.
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index