Mercurial > mplayer.hg
comparison libmpdemux/demux_real.c @ 6982:9037a1a34c94
RV40 support
author | arpi |
---|---|
date | Mon, 12 Aug 2002 00:04:37 +0000 |
parents | 2917b41c85ec |
children | 8f92313a0cd5 |
comparison
equal
deleted
inserted
replaced
6981:3bc485948088 | 6982:9037a1a34c94 |
---|---|
6 Based on FFmpeg's libav/rm.c. | 6 Based on FFmpeg's libav/rm.c. |
7 | 7 |
8 TODO: fix the whole syncing mechanism | 8 TODO: fix the whole syncing mechanism |
9 | 9 |
10 $Log$ | 10 $Log$ |
11 Revision 1.20 2002/08/12 00:04:37 arpi | |
12 RV40 support | |
13 | |
11 Revision 1.19 2002/08/05 03:13:45 arpi | 14 Revision 1.19 2002/08/05 03:13:45 arpi |
12 fixed 'eof at 66s' bug | 15 fixed 'eof at 66s' bug |
13 | 16 |
14 Revision 1.18 2002/06/14 00:49:56 arpi | 17 Revision 1.18 2002/06/14 00:49:56 arpi |
15 fixed playback speed and a-v sync issues | 18 fixed playback speed and a-v sync issues |
516 dp->pos = demuxer->filepos; | 519 dp->pos = demuxer->filepos; |
517 dp->flags = (flags & 0x2) ? 0x10 : 0; | 520 dp->flags = (flags & 0x2) ? 0x10 : 0; |
518 ds_add_packet(ds, dp); | 521 ds_add_packet(ds, dp); |
519 } else | 522 } else |
520 if (sh_video != NULL) { | 523 if (sh_video != NULL) { |
521 if (sh_video->format==0x30335652 || | 524 if (sh_video->format==0x30345652 || |
525 sh_video->format==0x30335652 || | |
522 sh_video->format==0x30325652 ) { | 526 sh_video->format==0x30325652 ) { |
523 // we need a more complicated demuxing | 527 // we need a more complicated demuxing |
524 // a block may contain multiple packets | 528 // a block may contain multiple packets |
525 // as well as a packet may be contained in multiple blocks | 529 // as well as a packet may be contained in multiple blocks |
526 int vpkg_header, vpkg_blknum, vpkg_length, vpkg_offset; | 530 int vpkg_header, vpkg_blknum, vpkg_length, vpkg_offset; |
1063 /* codec id: rv20 */ | 1067 /* codec id: rv20 */ |
1064 break; | 1068 break; |
1065 case 0x30202002: | 1069 case 0x30202002: |
1066 /* codec id: rv30 */ | 1070 /* codec id: rv30 */ |
1067 break; | 1071 break; |
1072 case 0x40000000: | |
1073 /* codec id: rv40 */ | |
1074 break; | |
1068 default: | 1075 default: |
1069 /* codec id: none */ | 1076 /* codec id: none */ |
1070 mp_msg(MSGT_DEMUX,MSGL_V,"unknown id: %x\n", tmp); | 1077 mp_msg(MSGT_DEMUX,MSGL_V,"unknown id: %x\n", tmp); |
1071 } | 1078 } |
1072 | 1079 |