android_kernel_xiaomi_sm8350/drivers/media/dvb
Mark Adams b3967d6c25 [PATCH] dvb: fix bug in demux that caused lost mpeg sections
Fix a bug in the software demux which causes large MPEG sections to be lost
when they follow very small sections.

The problem happens when two sections begin in the same transport packet.  The
dvb_demux code resets its buffer only before the first of these sections.
This means that when the second (or subsequent) section begins, there is up to
182 bytes of buffer space already used.  If the following section is close to
the maximum size, it currently won't fit in the (4096-byte) buffer and is
thrown away.

The fix is simply to enlarge the buffer by the size of one transport packet
and correct one usage of the SECFEED_SIZE definition where what is really
meant is the maximum size of a section.

Signed-off-by: Mark Adams <mark147m@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-09 07:56:05 -08:00
..
b2c2 [PATCH] dvb: Add support for Air2PC/AirStar 2 ATSC 3rd generation (HD5000) 2005-11-09 07:56:03 -08:00
bt8xx [PATCH] dvb: Nebula nxt6000 requires fe reset 2005-11-09 07:56:04 -08:00
cinergyT2 [PATCH] drivers/media: convert to dynamic input_dev allocation 2005-10-28 09:52:53 -07:00
dvb-core [PATCH] dvb: fix bug in demux that caused lost mpeg sections 2005-11-09 07:56:05 -08:00
dvb-usb [PATCH] dvb: remove duplicate key definitions 2005-11-09 07:56:02 -08:00
frontends [PATCH] dvb: determine tuner write method based on nxt chip 2005-11-09 07:56:05 -08:00
pluto2 [PATCH] dvb: pluto2: Removed unavoidable error message and related code 2005-11-09 07:56:01 -08:00
ttpci [PATCH] dvb: stv0299: reduce i2c xfer and set register 0x12 from inittab 2005-11-09 07:56:05 -08:00
ttusb-budget [PATCH] dvb: fixed inittab register 0x12 for BSRU6/BSBE1 2005-11-09 07:56:05 -08:00
ttusb-dec [PATCH] drivers/media: convert to dynamic input_dev allocation 2005-10-28 09:52:53 -07:00
Kconfig [PATCH] dvb: add Pluto2 driver 2005-07-07 18:23:55 -07:00
Makefile [PATCH] dvb: add Pluto2 driver 2005-07-07 18:23:55 -07:00