diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-02 10:46:08 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-02 10:46:08 +0000 |
commit | c69723f808ec19299e61ba389b512175f084fb4c (patch) | |
tree | 343b9e8b2457b5711af966d107f79942bc8a3952 /src | |
parent | 451f0515f1cf26159ded82a0c39a4ef87c3fd6f8 (diff) | |
download | xine-lib-c69723f808ec19299e61ba389b512175f084fb4c.tar.gz xine-lib-c69723f808ec19299e61ba389b512175f084fb4c.tar.bz2 |
Assume that the audio stream is AC3 on PMTs with ID 0x6a, rather than doing extra checks. If there are cases where the stream is not AC3, it would be nicer to blacklist them, rather than whitelist the cases where it's correct.
Patch by Julian Scheel.
CVS patchset: 8788
CVS date: 2007/04/02 10:46:08
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_ts.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c index 7d871faaa..aea0c8ca1 100644 --- a/src/demuxers/demux_ts.c +++ b/src/demuxers/demux_ts.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_ts.c,v 1.128 2007/04/02 10:13:02 dgp85 Exp $ + * $Id: demux_ts.c,v 1.129 2007/04/02 10:46:08 dgp85 Exp $ * * Demultiplexer for MPEG2 Transport Streams. * @@ -1307,17 +1307,8 @@ printf("Program Number is %i, looking for %i\n",program_number,this->program_num #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->audio_tracks[this->audio_tracks_count].pid = pid; this->audio_tracks[this->audio_tracks_count].media_index = this->media_num; |