Mercurial > mplayer.hg
comparison DOCS/tech/mpcf.txt @ 12242:f67bc1d216a1
file_id_string (idea by ivan)
remove 0byte skiped frames (idea by rich)
file structure
author | michael |
---|---|
date | Tue, 20 Apr 2004 23:00:28 +0000 |
parents | a0ddf85bdee0 |
children | 0ecbf08687d9 |
comparison
equal
deleted
inserted
replaced
12241:bcb8260d93e4 | 12242:f67bc1d216a1 |
---|---|
199 value vb | 199 value vb |
200 } | 200 } |
201 reserved_bytes | 201 reserved_bytes |
202 checksum u(32) | 202 checksum u(32) |
203 | 203 |
204 file | |
205 file_id_string | |
206 while(!eof){ | |
207 main_header | |
208 for(i=0; i<stream_count; i++){ | |
209 if(next_packet==video_stream_header) | |
210 video_stream_header | |
211 else | |
212 audio_stream_header | |
213 } | |
214 while(next_packet != main_header){ | |
215 if(next_packet == info_packet) | |
216 info_packet | |
217 else | |
218 frame | |
219 } | |
220 //FIXME index | |
221 } | |
204 | 222 |
205 forward_ptr | 223 forward_ptr |
206 size of the packet (exactly the distance from the first byte of the | 224 size of the packet (exactly the distance from the first byte of the |
207 startcode of the current packet to the first byte of the following packet | 225 startcode of the current packet to the first byte of the following packet |
208 Note: a frame with 0 bytes means that its skiped | 226 |
227 file_id_string | |
228 "nut/multimedia container\0" | |
209 | 229 |
210 *_startcode | 230 *_startcode |
211 all startcodes start with 'N' | 231 all startcodes start with 'N' |
212 | 232 |
213 main_startcode | 233 main_startcode |