comparison mmf.c @ 1167:d89d7ef290da libavformat

give AVInput/OutputFormat structs consistent names
author mru
date Sun, 09 Jul 2006 23:40:53 +0000
parents e3a585883bbd
children d18cc9a1fd02
comparison
equal deleted inserted replaced
1166:e89500dd9064 1167:d89d7ef290da
300 { 300 {
301 return pcm_read_seek(s, stream_index, timestamp, flags); 301 return pcm_read_seek(s, stream_index, timestamp, flags);
302 } 302 }
303 303
304 304
305 static AVInputFormat mmf_iformat = { 305 static AVInputFormat mmf_demuxer = {
306 "mmf", 306 "mmf",
307 "mmf format", 307 "mmf format",
308 sizeof(MMFContext), 308 sizeof(MMFContext),
309 mmf_probe, 309 mmf_probe,
310 mmf_read_header, 310 mmf_read_header,
312 mmf_read_close, 312 mmf_read_close,
313 mmf_read_seek, 313 mmf_read_seek,
314 }; 314 };
315 315
316 #ifdef CONFIG_MUXERS 316 #ifdef CONFIG_MUXERS
317 static AVOutputFormat mmf_oformat = { 317 static AVOutputFormat mmf_muxer = {
318 "mmf", 318 "mmf",
319 "mmf format", 319 "mmf format",
320 "application/vnd.smaf", 320 "application/vnd.smaf",
321 "mmf", 321 "mmf",
322 sizeof(MMFContext), 322 sizeof(MMFContext),
328 }; 328 };
329 #endif //CONFIG_MUXERS 329 #endif //CONFIG_MUXERS
330 330
331 int ff_mmf_init(void) 331 int ff_mmf_init(void)
332 { 332 {
333 av_register_input_format(&mmf_iformat); 333 av_register_input_format(&mmf_demuxer);
334 #ifdef CONFIG_MUXERS 334 #ifdef CONFIG_MUXERS
335 av_register_output_format(&mmf_oformat); 335 av_register_output_format(&mmf_muxer);
336 #endif //CONFIG_MUXERS 336 #endif //CONFIG_MUXERS
337 return 0; 337 return 0;
338 } 338 }
339 339