From 1a9361785cdde74feff211fc48a783ba154bc958 Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Tue, 23 Aug 2011 08:59:56 -0700 Subject: Logic error with AC3 demuxer This is a small mistake, but I'm fairly sure the index should be "j" and not "i". --- src/demuxers/demux_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c index f31578073..cde28adfb 100644 --- a/src/demuxers/demux_ts.c +++ b/src/demuxers/demux_ts.c @@ -1438,7 +1438,7 @@ printf("Program Number is %i, looking for %i\n",program_number,this->program_num if (((stream[i] == 0x6a) || (stream[i] == 0x7a)) && (this->audio_tracks_count < MAX_AUDIO_TRACKS)) { int j, found = 0; for(j = 0; j < this->audio_tracks_count; j++) { - if(this->audio_tracks[i].pid == pid) { + if(this->audio_tracks[j].pid == pid) { found = 1; break; } -- cgit v1.2.3