annotate demux_mov.c @ 1832:6bb5c038557a

Correct status of vorbis stuff.
author atmos4
date Sat, 01 Sep 2001 21:40:18 +0000
parents 5c7760aa4f94
children 5216f108cb4f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
1 // QuickTime MOV file parser
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
2 // based on TOOLS/movinfo.c by A'rpi & Al3x
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
3
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
4 #include <stdio.h>
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
5 #include <stdlib.h>
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
6 #include <unistd.h>
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
7
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
8 #include "config.h"
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
9 #include "mp_msg.h"
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
10
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
11 #include "stream.h"
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
12 #include "demuxer.h"
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
13
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
14 #include "wine/mmreg.h"
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
15 #include "wine/avifmt.h"
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
16 #include "wine/vfw.h"
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
17
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
18 #include "codec-cfg.h"
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
19 #include "stheader.h"
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
20
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
21 typedef struct {
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
22 int id;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
23 int type;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
24 int timescale;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
25 int width,height; // for video
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
26 unsigned int fourcc;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
27 int data_len;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
28 unsigned char* data;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
29 } mov_track_t;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
30
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
31 #define MOV_MAX_TRACKS 256
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
32
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
33 #define MOV_TRAK_UNKNOWN 0
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
34 #define MOV_TRAK_VIDEO 1
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
35 #define MOV_TRAK_AUDIO 2
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
36
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
37 typedef struct {
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
38 off_t moov_start;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
39 off_t moov_end;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
40 off_t mdat_start;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
41 off_t mdat_end;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
42 int track_db;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
43 mov_track_t* tracks[MOV_MAX_TRACKS];
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
44 } mov_priv_t;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
45
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
46 #define MOV_FOURCC(a,b,c,d) ((a<<24)|(b<<16)|(c<<8)|(d))
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
47
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
48 int mov_check_file(demuxer_t* demuxer){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
49 int flags=0;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
50 mov_priv_t* priv=malloc(sizeof(mov_priv_t));
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
51
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
52 mp_msg(MSGT_DEMUX,MSGL_V,"Checking for MOV\n");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
53
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
54 memset(priv,0,sizeof(mov_priv_t));
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
55 demuxer->priv=priv;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
56
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
57 while(1){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
58 off_t len=stream_read_dword(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
59 unsigned int id=stream_read_dword(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
60 if(stream_eof(demuxer->stream)) break; // EOF
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
61 if(len<8) break; // invalid chunk
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
62 switch(id){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
63 case MOV_FOURCC('m','o','o','v'):
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
64 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: Movie header found!\n");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
65 priv->moov_start=stream_tell(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
66 priv->moov_end=priv->moov_start+len-8;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
67 flags|=1;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
68 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
69 case MOV_FOURCC('m','d','a','t'):
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
70 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: Movie DATA found!\n");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
71 priv->mdat_start=stream_tell(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
72 priv->mdat_end=priv->mdat_start+len-8;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
73 flags|=2;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
74 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
75 default:
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
76 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: unknown chunk: %.4s %d\n",&id,(int)len);
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
77 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
78 if(!stream_skip(demuxer->stream,len-8)) break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
79 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
80
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
81 return (flags==3);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
82 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
83
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
84 static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
85 mov_priv_t* priv=demuxer->priv;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
86 while(1){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
87 off_t pos;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
88 off_t len;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
89 unsigned int id;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
90 //
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
91 pos=stream_tell(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
92 if(pos>=endpos) return; // END
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
93 len=stream_read_dword(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
94 if(len<8) return; // error
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
95 len-=8;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
96 id=stream_read_dword(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
97 //
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
98 mp_msg(MSGT_DEMUX,MSGL_DBG2,"lschunks %.4s %d\n",&id,(int)len);
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
99 //
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
100 if(trak){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
101 switch(id){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
102 case MOV_FOURCC('t','k','h','d'): {
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
103 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*sTrack header!\n",level,"");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
104 // read width x height
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
105 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
106 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
107 case MOV_FOURCC('m','d','h','d'): {
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
108 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*sMedia header!\n",level,"");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
109 // read timescale
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
110 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
111 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
112 case MOV_FOURCC('v','m','h','d'): {
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
113 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*sVideo header!\n",level,"");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
114 trak->type=MOV_TRAK_VIDEO;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
115 // read video data
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
116 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
117 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
118 case MOV_FOURCC('s','m','h','d'): {
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
119 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*sSound header!\n",level,"");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
120 trak->type=MOV_TRAK_AUDIO;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
121 // read audio data
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
122 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
123 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
124 case MOV_FOURCC('s','t','s','d'): {
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
125 int i=stream_read_dword(demuxer->stream); // temp!
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
126 int count=stream_read_dword(demuxer->stream);
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
127 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*sDescription list! (cnt:%d)\n",level,"",count);
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
128 for(i=0;i<count;i++){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
129 off_t pos=stream_tell(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
130 off_t len=stream_read_dword(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
131 unsigned int fourcc=stream_read_dword_le(demuxer->stream);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
132 if(len<8) break; // error
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
133 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*s desc #%d: %.4s",level,"",i,&fourcc);
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
134 if(!i){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
135 trak->fourcc=fourcc;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
136 // read codec data
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
137 trak->data_len=len-8;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
138 trak->data=malloc(trak->data_len);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
139 stream_read(demuxer->stream,trak->data,trak->data_len);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
140 if(trak->type==MOV_TRAK_VIDEO && trak->data_len>43){
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
141 mp_msg(MSGT_DEMUX,MSGL_V," '%.*s'",trak->data_len-43,trak->data+43);
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
142 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
143 }
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
144 mp_msg(MSGT_DEMUX,MSGL_V,"\n");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
145 if(fourcc!=trak->fourcc && i)
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
146 mp_msg(MSGT_DEMUX,MSGL_WARN,"MOV: Warning! variable FOURCC detected!?\n");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
147 if(!stream_seek(demuxer->stream,pos+len)) break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
148 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
149 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
150 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
151 case MOV_FOURCC('m','d','i','a'): {
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
152 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*sMedia stream!\n",level,"");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
153 lschunks(demuxer,level+1,pos+len,trak);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
154 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
155 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
156 case MOV_FOURCC('m','i','n','f'): {
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
157 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*sMedia info!\n",level,"");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
158 lschunks(demuxer,level+1,pos+len,trak);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
159 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
160 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
161 case MOV_FOURCC('s','t','b','l'): {
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
162 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*sSample info!\n",level,"");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
163 lschunks(demuxer,level+1,pos+len,trak);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
164 break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
165 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
166 }//switch(id)
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
167 } else
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
168 if(id==MOV_FOURCC('t','r','a','k')){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
169 // if(trak) printf("MOV: Warning! trak in trak?\n");
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
170 if(priv->track_db>=MOV_MAX_TRACKS){
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
171 mp_msg(MSGT_DEMUX,MSGL_WARN,"MOV: Warning! too many tracks!");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
172 return;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
173 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
174 trak=malloc(sizeof(mov_track_t));
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
175 memset(trak,0,sizeof(mov_track_t));
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
176 mp_msg(MSGT_DEMUX,MSGL_V,"MOV: Track #%d:\n",priv->track_db);
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
177 trak->id=priv->track_db;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
178 priv->tracks[priv->track_db++]=trak;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
179 lschunks(demuxer,level+1,pos+len,trak);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
180 trak=NULL;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
181 } else
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
182 if(id==MOV_FOURCC('c','m','o','v')){
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
183 mp_msg(MSGT_DEMUX,MSGL_ERR,"MOV: Compressed headers not (yet) supported!\n");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
184 return;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
185 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
186
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
187 pos+=len+8;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
188 if(pos>=endpos) break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
189 if(!stream_seek(demuxer->stream,pos)) break;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
190 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
191 }
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
192
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
193 int mov_read_header(demuxer_t* demuxer){
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
194 mov_priv_t* priv=demuxer->priv;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
195
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
196 // printf("mov_read_header!\n");
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
197
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
198 // Parse header:
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
199 if(!stream_seek(demuxer->stream,priv->moov_start)) return 0; // ???
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
200 lschunks(demuxer, 0, priv->moov_end, NULL);
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
201
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
202 // Build tables:
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
203 // ...
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
204
1567
5c7760aa4f94 printf->mp_msg/mp_dbg
arpi
parents: 1490
diff changeset
205 mp_msg(MSGT_DEMUX,MSGL_ERR,"\n****** Quicktime MOV format not yet supported!!!!!!! *******\n");
1490
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
206
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
207 return 1;
71424eb2b282 MOV file support - not works yet
arpi
parents:
diff changeset
208 }