media: dvb_demux: Better handle discontinuity errors
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Jan 2018 18:30:42 +0000 (13:30 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 29 Jan 2018 12:48:50 +0000 (07:48 -0500)
commitfed488b3956b6dc637bec6b5a0bc10d6435da9f5
tree249e1f6c9da73b6c97a4fff93b875e0f255ffed4
parent9893b905e743ded332575ca04486bd586c0772f7
media: dvb_demux: Better handle discontinuity errors

When a packet discontinuity happens, it is not just the payload
that was lost. The headers are lost too. So, the max size is not
184 but, instead 188.

Also, while printing warnings, make a distinction between
MPEG-TS indicated discontinuity and detected one.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-core/dvb_demux.c