aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/av7110_av.c
diff options
context:
space:
mode:
authorOliver Endriss <o.endriss@gmx.de>2009-04-19 13:47:01 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:21:02 -0400
commitef226d00dd041f753163fd3b69c7790496ab8384 (patch)
tree8cb70948118f31f705264153b374fe3917d2bf03 /drivers/media/dvb/ttpci/av7110_av.c
parentfd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf (diff)
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>
Diffstat (limited to 'drivers/media/dvb/ttpci/av7110_av.c')
-rw-r--r--drivers/media/dvb/ttpci/av7110_av.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/dvb/ttpci/av7110_av.c b/drivers/media/dvb/ttpci/av7110_av.c
index 2fc90e9a8b77..2adcaeff359c 100644
--- a/drivers/media/dvb/ttpci/av7110_av.c
+++ b/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
824{ 824{
825 struct ipack *ipack = &av7110->ipack[type]; 825 struct ipack *ipack = &av7110->ipack[type];
826 826
827 if (buf[1] & TRANS_ERROR) {
828 av7110_ipack_reset(ipack);
829 return -1;
830 }
831
827 if (!(buf[3] & PAYLOAD)) 832 if (!(buf[3] & PAYLOAD))
828 return -1; 833 return -1;
829 834