annotate libmpdemux/demux_realaud.c @ 17744:b6ff12e1240b

synced with 1.85
author gabrov
date Sun, 05 Mar 2006 18:56:44 +0000
parents b849a99cdc3c
children f70772d02eaa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
1 /*
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
2 Realaudio demuxer for MPlayer
14908
82344f91104a Fix some 28.8 ra files with four text strings
rtognimp
parents: 11544
diff changeset
3 (c) 2003, 2005 Roberto Togni
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
4 */
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
5
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
6 #include <stdio.h>
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
7 #include <stdlib.h>
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
8 #include <unistd.h>
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
9
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
10 #include "config.h"
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
11 #include "mp_msg.h"
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
12 #include "help_mp.h"
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
13
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
14 #include "stream.h"
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
15 #include "demuxer.h"
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
16 #include "stheader.h"
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
17 #include "bswap.h"
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
18
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
19
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
20 #define FOURCC_DOTRA mmioFOURCC('.','r','a', 0xfd)
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
21 #define FOURCC_144 mmioFOURCC('1','4','_','4')
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
22 #define FOURCC_288 mmioFOURCC('2','8','_','8')
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
23 #define FOURCC_DNET mmioFOURCC('d','n','e','t')
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
24 #define FOURCC_LPCJ mmioFOURCC('l','p','c','J')
17400
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
25 #define FOURCC_SIPR mmioFOURCC('s','i','p','r')
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
26
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
27
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
28 static unsigned char sipr_swaps[38][2]={
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
29 {0,63},{1,22},{2,44},{3,90},{5,81},{7,31},{8,86},{9,58},{10,36},{12,68},
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
30 {13,39},{14,73},{15,53},{16,69},{17,57},{19,88},{20,34},{21,71},{24,46},
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
31 {25,94},{26,54},{28,75},{29,50},{32,70},{33,92},{35,74},{38,85},{40,56},
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
32 {42,87},{43,65},{45,59},{48,79},{49,93},{51,89},{55,95},{61,76},{67,83},
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
33 {77,80} };
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
34
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
35 // Map flavour to bytes per second
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
36 static int sipr_fl2bps[4] = {813, 1062, 625, 2000}; // 6.5, 8.5, 5, 16 kbit per second
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
37
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
38
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
39 typedef struct {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
40 unsigned short version;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
41 unsigned int dotranum;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
42 unsigned int data_size;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
43 unsigned short version2;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
44 unsigned int hdr_size;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
45 unsigned short codec_flavor;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
46 unsigned int coded_framesize;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
47 unsigned short sub_packet_h;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
48 unsigned short frame_size;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
49 unsigned short sub_packet_size;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
50 char genr[4];
17400
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
51 unsigned char *audio_buf;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
52 } ra_priv_t;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
53
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
54
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
55
16175
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
56 static int ra_check_file(demuxer_t* demuxer)
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
57 {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
58 unsigned int chunk_id;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
59
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
60 chunk_id = stream_read_dword_le(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
61 if (chunk_id == FOURCC_DOTRA)
16175
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
62 return DEMUXER_TYPE_REALAUDIO;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
63 else
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
64 return 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
65 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
66
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
67
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
68
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
69 void hexdump(char *, unsigned long);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
70
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
71 // return value:
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
72 // 0 = EOF or no stream found
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
73 // 1 = successfully read a packet
16175
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
74 static int demux_ra_fill_buffer(demuxer_t *demuxer, demux_stream_t *dsds)
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
75 {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
76 ra_priv_t *ra_priv = demuxer->priv;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
77 int len;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
78 int timestamp;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
79 int flags;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
80 demux_stream_t *ds = demuxer->audio;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
81 sh_audio_t *sh = ds->sh;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
82 WAVEFORMATEX *wf = sh->wf;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
83 demux_packet_t *dp;
17149
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
84 int x, y;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
85
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
86 if (demuxer->stream->eof)
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
87 return 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
88
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
89 len = wf->nBlockAlign;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
90 demuxer->filepos = stream_tell(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
91
17400
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
92 if ((sh->format == FOURCC_288) || (sh->format == FOURCC_SIPR)) {
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
93 if (sh->format == FOURCC_SIPR) {
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
94 int n;
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
95 int bs = ra_priv->sub_packet_h * ra_priv->frame_size * 2 / 96; // nibbles per subpacket
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
96 stream_read(demuxer->stream, ra_priv->audio_buf, ra_priv->sub_packet_h * ra_priv->frame_size);
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
97 // Perform reordering
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
98 for(n = 0; n < 38; n++) {
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
99 int j;
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
100 int i = bs * sipr_swaps[n][0];
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
101 int o = bs * sipr_swaps[n][1];
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
102 // swap nibbles of block 'i' with 'o' TODO: optimize
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
103 for(j = 0; j < bs; j++) {
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
104 int x = (i & 1) ? (ra_priv->audio_buf[i >> 1] >> 4) : (ra_priv->audio_buf[i >> 1] & 0x0F);
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
105 int y = (o & 1) ? (ra_priv->audio_buf[o >> 1] >> 4) : (ra_priv->audio_buf[o >> 1] & 0x0F);
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
106 if(o & 1)
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
107 ra_priv->audio_buf[o >> 1] = (ra_priv->audio_buf[o >> 1] & 0x0F) | (x << 4);
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
108 else
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
109 ra_priv->audio_buf[o >> 1] = (ra_priv->audio_buf[o >> 1] & 0xF0) | x;
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
110 if(i & 1)
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
111 ra_priv->audio_buf[i >> 1] = (ra_priv->audio_buf[i >> 1] & 0x0F) | (y << 4);
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
112 else
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
113 ra_priv->audio_buf[i >> 1] = (ra_priv->audio_buf[i >> 1] & 0xF0) | y;
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
114 ++i; ++o;
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
115 }
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
116 }
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
117 } else {
17149
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
118 for (y = 0; y < ra_priv->sub_packet_h; y++)
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
119 for (x = 0; x < ra_priv->sub_packet_h / 2; x++)
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
120 stream_read(demuxer->stream, ra_priv->audio_buf + x * 2 *ra_priv->frame_size +
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
121 y * ra_priv->coded_framesize, ra_priv->coded_framesize);
17400
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
122 }
17149
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
123 // Release all the audio packets
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
124 for (x = 0; x < ra_priv->sub_packet_h * ra_priv->frame_size / len; x++) {
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
125 dp = new_demux_packet(len);
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
126 memcpy(dp->buffer, ra_priv->audio_buf + x * len, len);
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
127 dp->pts = x ? 0 : demuxer->filepos / ra_priv->data_size;
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
128 dp->pos = demuxer->filepos; // all equal
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
129 dp->flags = x ? 0 : 0x10; // Mark first packet as keyframe
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
130 ds_add_packet(ds, dp);
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
131 }
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
132 } else {
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
133 dp = new_demux_packet(len);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
134 stream_read(demuxer->stream, dp->buffer, len);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
135
10035
d4ecf93e236a Remove broker reset/seek and fix ;;
rtognimp
parents: 10034
diff changeset
136 dp->pts = demuxer->filepos / ra_priv->data_size;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
137 dp->pos = demuxer->filepos;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
138 dp->flags = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
139 ds_add_packet(ds, dp);
17149
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
140 }
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
141
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
142 return 1;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
143 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
144
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
145
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
146
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
147 extern void print_wave_header(WAVEFORMATEX *h);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
148
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
149
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
150
16175
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
151 static demuxer_t* demux_open_ra(demuxer_t* demuxer)
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
152 {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
153 ra_priv_t* ra_priv = demuxer->priv;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
154 sh_audio_t *sh;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
155 int i;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
156 char *buf;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
157
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
158 if ((ra_priv = (ra_priv_t *)malloc(sizeof(ra_priv_t))) == NULL) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
159 mp_msg(MSGT_DEMUX, MSGL_ERR, "[RealAudio] Can't allocate memory for private data.\n");
10232
939ff11825de Warning fixes, patch by Dominik Mierzejewski
rtognimp
parents: 10124
diff changeset
160 return 0;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
161 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
162 memset(ra_priv, 0, sizeof(ra_priv_t));
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
163
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
164 demuxer->priv = ra_priv;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
165 sh = new_sh_audio(demuxer, 0);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
166 demuxer->audio->id = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
167 sh->ds=demuxer->audio;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
168 demuxer->audio->sh = sh;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
169
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
170 ra_priv->version = stream_read_word(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
171 mp_msg(MSGT_DEMUX,MSGL_V,"[RealAudio] File version: %d\n", ra_priv->version);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
172 if ((ra_priv->version < 3) || (ra_priv->version > 4)) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
173 mp_msg(MSGT_DEMUX,MSGL_WARN,"[RealAudio] ra version %d is not supported yet, please "
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
174 "contact MPlayer developers\n", ra_priv->version);
10232
939ff11825de Warning fixes, patch by Dominik Mierzejewski
rtognimp
parents: 10124
diff changeset
175 return 0;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
176 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
177 if (ra_priv->version == 3) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
178 ra_priv->hdr_size = stream_read_word(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
179 stream_skip(demuxer->stream, 10);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
180 ra_priv->data_size = stream_read_dword(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
181 } else {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
182 stream_skip(demuxer->stream, 2);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
183 ra_priv->dotranum = stream_read_dword(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
184 ra_priv->data_size = stream_read_dword(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
185 ra_priv->version2 = stream_read_word(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
186 ra_priv->hdr_size = stream_read_dword(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
187 ra_priv->codec_flavor = stream_read_word(demuxer->stream);
17400
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
188 mp_msg(MSGT_DEMUX,MSGL_V,"[RealAudio] Flavor: %d\n", ra_priv->codec_flavor);
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
189 ra_priv->coded_framesize = stream_read_dword(demuxer->stream);
17400
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
190 mp_msg(MSGT_DEMUX,MSGL_V,"[RealAudio] Coded frame size: %d\n", ra_priv->coded_framesize);
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
191 stream_skip(demuxer->stream, 4); // data size?
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
192 stream_skip(demuxer->stream, 8);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
193 ra_priv->sub_packet_h = stream_read_word(demuxer->stream);
17400
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
194 mp_msg(MSGT_DEMUX,MSGL_V,"[RealAudio] Sub packet h: %d\n", ra_priv->sub_packet_h);
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
195 ra_priv->frame_size = stream_read_word(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
196 mp_msg(MSGT_DEMUX,MSGL_V,"[RealAudio] Frame size: %d\n", ra_priv->frame_size);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
197 ra_priv->sub_packet_size = stream_read_word(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
198 mp_msg(MSGT_DEMUX,MSGL_V,"[RealAudio] Sub packet size: %d\n", ra_priv->sub_packet_size);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
199 stream_skip(demuxer->stream, 2);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
200 sh->samplerate = stream_read_word(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
201 stream_skip(demuxer->stream, 2);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
202 sh->samplesize = stream_read_word(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
203 sh->channels = stream_read_word(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
204 mp_msg(MSGT_DEMUX,MSGL_V,"[RealAudio] %d channel, %d bit, %dHz\n", sh->channels,
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
205 sh->samplesize, sh->samplerate);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
206 i = stream_read_char(demuxer->stream);
16322
9cb2b9b6a9b7 Sparcs do not like wild pointer typecasting (unaligned access).
reimar
parents: 16175
diff changeset
207 ra_priv->genr[0] = stream_read_char(demuxer->stream);
9cb2b9b6a9b7 Sparcs do not like wild pointer typecasting (unaligned access).
reimar
parents: 16175
diff changeset
208 ra_priv->genr[1] = stream_read_char(demuxer->stream);
9cb2b9b6a9b7 Sparcs do not like wild pointer typecasting (unaligned access).
reimar
parents: 16175
diff changeset
209 ra_priv->genr[2] = stream_read_char(demuxer->stream);
9cb2b9b6a9b7 Sparcs do not like wild pointer typecasting (unaligned access).
reimar
parents: 16175
diff changeset
210 ra_priv->genr[3] = stream_read_char(demuxer->stream);
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
211 if (i != 4) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
212 mp_msg(MSGT_DEMUX,MSGL_WARN,"[RealAudio] Genr size is not 4 (%d), please report to "
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
213 "MPlayer developers\n", i);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
214 stream_skip(demuxer->stream, i - 4);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
215 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
216 i = stream_read_char(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
217 sh->format = stream_read_dword_le(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
218 if (i != 4) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
219 mp_msg(MSGT_DEMUX,MSGL_WARN,"[RealAudio] FourCC size is not 4 (%d), please report to "
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
220 "MPlayer developers\n", i);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
221 stream_skip(demuxer->stream, i - 4);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
222 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
223 stream_skip(demuxer->stream, 3);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
224 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
225
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
226 if ((i = stream_read_char(demuxer->stream)) != 0) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
227 buf = malloc(i+1);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
228 stream_read(demuxer->stream, buf, i);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
229 buf[i] = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
230 demux_info_add(demuxer, "Title", buf);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
231 free(buf);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
232 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
233 if ((i = stream_read_char(demuxer->stream)) != 0) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
234 buf = malloc(i+1);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
235 stream_read(demuxer->stream, buf, i);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
236 buf[i] = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
237 demux_info_add(demuxer, "Author", buf);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
238 free(buf);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
239 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
240 if ((i = stream_read_char(demuxer->stream)) != 0) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
241 buf = malloc(i+1);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
242 stream_read(demuxer->stream, buf, i);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
243 buf[i] = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
244 demux_info_add(demuxer, "Copyright", buf);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
245 free(buf);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
246 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
247
14908
82344f91104a Fix some 28.8 ra files with four text strings
rtognimp
parents: 11544
diff changeset
248 if ((i = stream_read_char(demuxer->stream)) != 0) {
82344f91104a Fix some 28.8 ra files with four text strings
rtognimp
parents: 11544
diff changeset
249 buf = malloc(i+1);
82344f91104a Fix some 28.8 ra files with four text strings
rtognimp
parents: 11544
diff changeset
250 stream_read(demuxer->stream, buf, i);
82344f91104a Fix some 28.8 ra files with four text strings
rtognimp
parents: 11544
diff changeset
251 buf[i] = 0;
82344f91104a Fix some 28.8 ra files with four text strings
rtognimp
parents: 11544
diff changeset
252 demux_info_add(demuxer, "Comment", buf);
82344f91104a Fix some 28.8 ra files with four text strings
rtognimp
parents: 11544
diff changeset
253 free(buf);
82344f91104a Fix some 28.8 ra files with four text strings
rtognimp
parents: 11544
diff changeset
254 }
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
255
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
256 if (ra_priv->version == 3) {
14909
aa6715eaa28c Fix very old ra files with no fourcc
rtognimp
parents: 14908
diff changeset
257 if(ra_priv->hdr_size + 8 > stream_tell(demuxer->stream)) {
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
258 stream_skip(demuxer->stream, 1);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
259 i = stream_read_char(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
260 sh->format = stream_read_dword_le(demuxer->stream);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
261 if (i != 4) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
262 mp_msg(MSGT_DEMUX,MSGL_WARN,"[RealAudio] FourCC size is not 4 (%d), please report to "
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
263 "MPlayer developers\n", i);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
264 stream_skip(demuxer->stream, i - 4);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
265 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
266
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
267 if (sh->format != FOURCC_LPCJ) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
268 mp_msg(MSGT_DEMUX,MSGL_WARN,"[RealAudio] Version 3 with FourCC %8x, please report to "
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
269 "MPlayer developers\n", sh->format);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
270 }
14909
aa6715eaa28c Fix very old ra files with no fourcc
rtognimp
parents: 14908
diff changeset
271 } else
aa6715eaa28c Fix very old ra files with no fourcc
rtognimp
parents: 14908
diff changeset
272 // If a stream does not have fourcc, let's assume it's 14.4
aa6715eaa28c Fix very old ra files with no fourcc
rtognimp
parents: 14908
diff changeset
273 sh->format = FOURCC_LPCJ;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
274
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
275 sh->channels = 1;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
276 sh->samplesize = 16;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
277 sh->samplerate = 8000;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
278 ra_priv->frame_size = 240;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
279 sh->format = FOURCC_144;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
280 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
281
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
282 /* Fill WAVEFORMATEX */
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
283 sh->wf = malloc(sizeof(WAVEFORMATEX));
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
284 memset(sh->wf, 0, sizeof(WAVEFORMATEX));
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
285 sh->wf->nChannels = sh->channels;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
286 sh->wf->wBitsPerSample = sh->samplesize;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
287 sh->wf->nSamplesPerSec = sh->samplerate;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
288 sh->wf->nAvgBytesPerSec = sh->samplerate*sh->samplesize/8;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
289 sh->wf->nBlockAlign = ra_priv->frame_size;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
290 sh->wf->cbSize = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
291 sh->wf->wFormatTag = sh->format;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
292
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
293 switch (sh->format) {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
294 case FOURCC_144:
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
295 mp_msg(MSGT_DEMUX,MSGL_V,"Audio: 14_4\n");
17149
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
296 sh->wf->nBlockAlign = 0x14;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
297 break;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
298 case FOURCC_288:
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
299 mp_msg(MSGT_DEMUX,MSGL_V,"Audio: 28_8\n");
17149
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
300 sh->wf->nBlockAlign = ra_priv->coded_framesize;
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
301 ra_priv->audio_buf = malloc(ra_priv->sub_packet_h * ra_priv->frame_size);
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
302 break;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
303 case FOURCC_DNET:
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
304 mp_msg(MSGT_DEMUX,MSGL_V,"Audio: DNET -> AC3\n");
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
305 break;
17400
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
306 case FOURCC_SIPR:
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
307 mp_msg(MSGT_DEMUX,MSGL_V,"Audio: SIPR\n");
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
308 sh->wf->nBlockAlign = ra_priv->coded_framesize;
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
309 sh->wf->nAvgBytesPerSec = sipr_fl2bps[ra_priv->codec_flavor];
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
310 ra_priv->audio_buf = malloc(ra_priv->sub_packet_h * ra_priv->frame_size);
7dd65dccf4f5 Support sipr codec in old RealAudio files.
rtognimp
parents: 17149
diff changeset
311 break;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
312 default:
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
313 mp_msg(MSGT_DEMUX,MSGL_V,"Audio: Unknown (%d)\n", sh->format);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
314 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
315
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
316 print_wave_header(sh->wf);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
317
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
318 /* disable seeking */
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
319 demuxer->seekable = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
320
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
321 if(!ds_fill_buffer(demuxer->audio))
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
322 mp_msg(MSGT_DEMUXER,MSGL_INFO,"[RealAudio] No data.\n");
10232
939ff11825de Warning fixes, patch by Dominik Mierzejewski
rtognimp
parents: 10124
diff changeset
323
16175
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
324 return demuxer;
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
325 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
326
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
327
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
328
16175
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
329 static void demux_close_ra(demuxer_t *demuxer)
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
330 {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
331 ra_priv_t* ra_priv = demuxer->priv;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
332
17149
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
333 if (ra_priv) {
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
334 if (ra_priv->audio_buf)
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
335 free (ra_priv->audio_buf);
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
336 free(ra_priv);
17149
9a0a376a54b1 Move audio packets reordering from codec interface to demuxers for real
rtognimp
parents: 16322
diff changeset
337 }
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
338 return;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
339 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
340
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
341
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
342 #if 0
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
343 /* please upload RV10 samples WITH INDEX CHUNK */
17636
b849a99cdc3c Second-try commit of this patch.
corey
parents: 17569
diff changeset
344 int demux_seek_ra(demuxer_t *demuxer, float rel_seek_secs, float audio_delay, int flags)
10034
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
345 {
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
346 real_priv_t *priv = demuxer->priv;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
347 demux_stream_t *d_audio = demuxer->audio;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
348 sh_audio_t *sh_audio = d_audio->sh;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
349 int aid = d_audio->id;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
350 int next_offset = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
351 int rel_seek_frames = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
352 int streams = 0;
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
353
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
354 return stream_seek(demuxer->stream, next_offset);
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
355 }
4f434f04b5bf Realaudio support
rtognimp
parents:
diff changeset
356 #endif
16175
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
357
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
358
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
359 demuxer_desc_t demuxer_desc_realaudio = {
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
360 "Realaudio demuxer",
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
361 "realaudio",
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
362 "REALAUDIO",
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
363 "Roberto Togni",
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
364 "handles old audio only .ra files",
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
365 DEMUXER_TYPE_REALAUDIO,
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
366 1, // safe autodetect
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
367 ra_check_file,
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
368 demux_ra_fill_buffer,
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
369 demux_open_ra,
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
370 demux_close_ra,
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
371 NULL,
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
372 NULL
6b86089c2edd Demuxer modularization
rtognimp
parents: 14909
diff changeset
373 };