summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Thommeret <hftom@free.fr>2009-02-07 10:30:43 +0000
committerChristophe Thommeret <hftom@free.fr>2009-02-07 10:30:43 +0000
commite1f2db6c16e44fe3da9e0462b74dee26b96853cc (patch)
tree7310cec42a2fdb10fa8bd0b6fdec60c656c3eddf /src
parent52f3df4fd835c3e7601d30d74a5ea954db10f018 (diff)
downloadxine-lib-e1f2db6c16e44fe3da9e0462b74dee26b96853cc.tar.gz
xine-lib-e1f2db6c16e44fe3da9e0462b74dee26b96853cc.tar.bz2
Quick hack for .evo files.
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_mpeg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c
index 388be2140..026d2a88e 100644
--- a/src/demuxers/demux_mpeg.c
+++ b/src/demuxers/demux_mpeg.c
@@ -246,6 +246,8 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, int64_t scr)
len = read_bytes(this, 2);
+ //printf( "parse_mpeg2_packet: stream_id=%X\n", stream_id);
+
if (stream_id==0xbd) {
int track;
@@ -467,7 +469,7 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, int64_t scr)
}
- } else if ((stream_id >= 0xbc) && ((stream_id & 0xf0) == 0xe0)) {
+ } else if ( ((stream_id >= 0xbc) && ((stream_id & 0xf0) == 0xe0)) || stream_id==0xfd ) {
w = read_bytes(this, 1);
flags = read_bytes(this, 1);
@@ -516,7 +518,7 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, int64_t scr)
return;
}
- buf->type = BUF_VIDEO_MPEG;
+ buf->type = (stream_id==0xfd) ? BUF_VIDEO_VC1 : BUF_VIDEO_MPEG;
buf->pts = pts;
buf->decoder_info[0] = pts - dts;
check_newpts( this, pts, PTS_VIDEO );