V4L/DVB (11760): dvb-ttpci: Check transport error indicator flag

Discard PES packet if transport error indicator flag is set.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Oliver Endriss 2009-04-19 14:47:01 -03:00 committed by Mauro Carvalho Chehab
parent fd46d16d60
commit ef226d00dd
1 changed files with 5 additions and 0 deletions

View File

@ -824,6 +824,11 @@ static int write_ts_to_decoder(struct av7110 *av7110, int type, const u8 *buf, s
{
struct ipack *ipack = &av7110->ipack[type];
if (buf[1] & TRANS_ERROR) {
av7110_ipack_reset(ipack);
return -1;
}
if (!(buf[3] & PAYLOAD))
return -1;