summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2002-12-17 16:42:29 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2002-12-17 16:42:29 +0000
commit21838dc5831c7455141c04c0627dee38d913ca50 (patch)
treefdb7b69ec1ba2869010755e21db2ef326ac0d9e6 /src
parent63531c6f80c97b9527d930ea4ca363a1e5970051 (diff)
downloadxine-lib-21838dc5831c7455141c04c0627dee38d913ca50.tar.gz
xine-lib-21838dc5831c7455141c04c0627dee38d913ca50.tar.bz2
Replace GNU C range extension "..." with ordinary comparision, so that the
code can be compiled with non-gcc compiler CVS patchset: 3574 CVS date: 2002/12/17 16:42:29
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_ts.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c
index 32c610525..7980edfb2 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.69 2002/12/09 17:33:36 guenter Exp $
+ * $Id: demux_ts.c,v 1.70 2002/12/17 16:42:29 jkeil Exp $
*
* Demultiplexer for MPEG2 Transport Streams.
*
@@ -1503,8 +1503,7 @@ static void demux_ts_parse_packet (demux_ts_t*this) {
int t = originalPkt[data_offset+3];
- switch (t) {
- case VIDEO_STREAM_S ... VIDEO_STREAM_E:
+ if (t >= VIDEO_STREAM_S && t <= VIDEO_STREAM_E) {
if ( this->videoPid == INVALID_PID) {
printf ("demux_ts: auto-detected video pid %d\n",
@@ -1514,9 +1513,8 @@ static void demux_ts_parse_packet (demux_ts_t*this) {
this->videoMedia = this->media_num;
demux_ts_pes_new(this, this->media_num++, pid, this->video_fifo, t);
}
- break;
- case PRIVATE_STREAM1:
- case AUDIO_STREAM_S ... AUDIO_STREAM_E:
+ } else if (t == PRIVATE_STREAM1 ||
+ t >= AUDIO_STREAM_S && t <= AUDIO_STREAM_E) {
if ( this->audioPid == INVALID_PID) {
printf ("demux_ts: auto-detected audio pid %d\n",
@@ -1526,7 +1524,6 @@ static void demux_ts_parse_packet (demux_ts_t*this) {
this->audioMedia = this->media_num;
demux_ts_pes_new(this, this->media_num++, pid, this->audio_fifo, t);
}
- break;
}
}