From: <xi...@za...> - 2006-11-20 05:28:55
|
Please ignore previous patch. Here is a proper one: =============================================================================== --- xine-lib-1.1.1/src/demuxers/demux_ts.c.xi 2005-02-07 02:26:19.000000000 +1100 +++ xine-lib-1.1.1/src/demuxers/demux_ts.c 2006-11-20 15:25:00.000000000 +1100 @@ -1692,14 +1692,19 @@ } if (payload_unit_start_indicator && this->media_num < MAX_PIDS){ - int pes_stream_id; + int pes_stream_id = 0; if (pid == 0) { demux_ts_parse_pat (this, originalPkt, originalPkt+data_offset-4, payload_unit_start_indicator); return; } - program_count = 0; - pes_stream_id = originalPkt[data_offset+3]; + if ( + originalPkt[data_offset+0] == 0 + && originalPkt[data_offset+1] == 0 + && originalPkt[data_offset+2] == 1 + ){ + pes_stream_id = originalPkt[data_offset+3]; + } #ifdef TS_HEADER_LOG printf("demux_ts:ts_pes_header:stream_id=0x%.2x\n",pes_stream_id); =============================================================================== |