annotate demux_mov.c @ 2077:85683535e2b7

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