diff options
author | Oliver Endriss <o.endriss@gmx.de> | 2009-04-19 19:47:01 +0200 |
---|---|---|
committer | Oliver Endriss <o.endriss@gmx.de> | 2009-04-19 19:47:01 +0200 |
commit | 64653d7d79b02fcce49f6b56e8b12d7ead4201f1 (patch) | |
tree | df150bbd72e4b43ceb98655764b577189cf12c99 /linux/drivers/media | |
parent | ea7c6424150b7c03840e34b1a38a42c05c4a0489 (diff) | |
download | mediapointer-dvb-s2-64653d7d79b02fcce49f6b56e8b12d7ead4201f1.tar.gz mediapointer-dvb-s2-64653d7d79b02fcce49f6b56e8b12d7ead4201f1.tar.bz2 |
dvb-ttpci: Check transport error indicator flag
From: Oliver Endriss <o.endriss@gmx.de>
Discard PES packet if transport error indicator flag is set.
Priority: normal
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_av.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_av.c b/linux/drivers/media/dvb/ttpci/av7110_av.c index 2fc90e9a8..2adcaeff3 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_av.c +++ b/linux/drivers/media/dvb/ttpci/av7110_av.c @@ -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; |