[vlc-devel] [PATCH] ts: fix demuxing of BluRay DTS audio

Petri Hintukainen phintuka at gmail.com
Mon Oct 26 13:34:12 CET 2015


PIDFillFormat() marks stream type 0x82 as section data.
---
 modules/demux/mpeg/ts.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 027eb7d..66fd351 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -5289,9 +5289,11 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
         {
             if ( registration_type == TS_PMT_REGISTRATION_HDMV )
             {
-                if (( b_registration_applied = PMTSetupEsHDMV( p_demux, &p_pes->es, p_dvbpsies ) ))
+                if (( b_registration_applied = PMTSetupEsHDMV( p_demux, &p_pes->es, p_dvbpsies ) )) {
                     msg_Dbg( p_demux, "    + HDMV registration applied to pid %d type 0x%x",
                              p_dvbpsies->i_pid, p_dvbpsies->i_type );
+                    p_pes->data_type = TS_ES_DATA_PES;
+                }
             }
             else
             {
-- 
2.5.0



More information about the vlc-devel mailing list