From e2510f806659b9f7aeaffbbecfa1829f5f3ac2a6 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 7 Mar 2012 20:29:13 +0100 Subject: [PATCH] dmx: fix web streaming by allowing PID 0 for pesFilter() Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/16d8d3e8c8c8e3809afa28d44994f95d27b5b2b4 Author: Stefan Seyfried Date: 2012-03-07 (Wed, 07 Mar 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libspark/dmx.cpp | 4 ++++ libtriple/dmx_td.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/libspark/dmx.cpp b/libspark/dmx.cpp index c22e307..188fd5f 100644 --- a/libspark/dmx.cpp +++ b/libspark/dmx.cpp @@ -394,8 +394,12 @@ bool cDemux::sectionFilter(unsigned short pid, const unsigned char * const filte bool cDemux::pesFilter(const unsigned short pid) { + /* allow PID 0 for web streaming e.g. + * this check originally is from tuxbox cvs but I'm not sure + * what it is good for... if (pid <= 0x0001 && dmx_type != DMX_PCR_ONLY_CHANNEL) return false; + */ if ((pid >= 0x0002 && pid <= 0x000f) || pid >= 0x1fff) return false; diff --git a/libtriple/dmx_td.cpp b/libtriple/dmx_td.cpp index 8f9247b..35efade 100644 --- a/libtriple/dmx_td.cpp +++ b/libtriple/dmx_td.cpp @@ -448,8 +448,12 @@ bool cDemux::sectionFilter(unsigned short pid, const unsigned char * const filte bool cDemux::pesFilter(const unsigned short pid) { + /* allow PID 0 for web streaming e.g. + * this check originally is from tuxbox cvs but I'm not sure + * what it is good for... if (pid <= 0x0001 && dmx_type != DMX_PCR_ONLY_CHANNEL) return false; + */ if ((pid >= 0x0002 && pid <= 0x000f) || pid >= 0x1fff) return false;