Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] bug in dvb.c fidbirq() ?



Hi,

I think there is a bug in driver/dvb.c (cvs rev 1.142) in fidbirq(...).

In the !field part there shouldn't be any packets processed beyond
TS_BUFLEN/2 because they get processed in the field part at the next irq
anyway. This will lead to duplicated packets (which is (most of the time) no
problem if it's just one but ...).

I suggest adding a

if ( dmapos > (TS_BUFLEN/2) ) dmapos = TS_BUFLEN/2;

directly above line 1038:

num=dmapos/188;
dvb->ttnp=dmapos;
...

Comments welcome. (I might be completely wrong :-)

Regards,
Matthias Behr








-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index