All pastes #232250 Raw Edit

Dnumgis

public c v1 · immutable
·published 2006-11-01 07:54 UTC
rendered paste body
--- demux_ts.c  2006-11-01 08:54:27.877240750 +0100+++ demux_ts-new.c      2006-11-01 08:53:14.156633500 +0100@@ -1280,17 +1280,8 @@ #ifdef TS_PMT_LOG           printf ("demux_ts: PMT AC3 audio pid 0x%.4x\n", pid); #endif-          demux_ts_get_reg_desc(this, &format_identifier,-                                stream + 5, stream_info_length);-          if (format_identifier == 0x41432d33) /* AC-3 */-            demux_ts_pes_new(this, this->media_num, pid,-                             this->audio_fifo, 0x81);-          else if((stream[i+1]>1) && (stream[i+2] & 0x80 ) && (stream[3] & 0x40)) /* AC3 Full Service */-            demux_ts_pes_new(this, this->media_num, pid,-                             this->audio_fifo, 0x81);-          else-            demux_ts_pes_new(this, this->media_num, pid,-                             this->audio_fifo,stream[0]);+          demux_ts_pes_new(this, this->media_num, pid,+                           this->audio_fifo, 0x81);            this->audioPid = pid;           this->audioMedia = this->media_num;