Mercurial > libavformat.hg
comparison wav.c @ 1167:d89d7ef290da libavformat
give AVInput/OutputFormat structs consistent names
author | mru |
---|---|
date | Sun, 09 Jul 2006 23:40:53 +0000 |
parents | 02e10bcc0e0d |
children | d18cc9a1fd02 |
comparison
equal
deleted
inserted
replaced
1166:e89500dd9064 | 1167:d89d7ef290da |
---|---|
403 } | 403 } |
404 return pcm_read_seek(s, stream_index, timestamp, flags); | 404 return pcm_read_seek(s, stream_index, timestamp, flags); |
405 } | 405 } |
406 | 406 |
407 | 407 |
408 static AVInputFormat wav_iformat = { | 408 static AVInputFormat wav_demuxer = { |
409 "wav", | 409 "wav", |
410 "wav format", | 410 "wav format", |
411 sizeof(WAVContext), | 411 sizeof(WAVContext), |
412 wav_probe, | 412 wav_probe, |
413 wav_read_header, | 413 wav_read_header, |
415 wav_read_close, | 415 wav_read_close, |
416 wav_read_seek, | 416 wav_read_seek, |
417 }; | 417 }; |
418 | 418 |
419 #ifdef CONFIG_MUXERS | 419 #ifdef CONFIG_MUXERS |
420 static AVOutputFormat wav_oformat = { | 420 static AVOutputFormat wav_muxer = { |
421 "wav", | 421 "wav", |
422 "wav format", | 422 "wav format", |
423 "audio/x-wav", | 423 "audio/x-wav", |
424 "wav", | 424 "wav", |
425 sizeof(WAVContext), | 425 sizeof(WAVContext), |
431 }; | 431 }; |
432 #endif //CONFIG_MUXERS | 432 #endif //CONFIG_MUXERS |
433 | 433 |
434 int ff_wav_init(void) | 434 int ff_wav_init(void) |
435 { | 435 { |
436 av_register_input_format(&wav_iformat); | 436 av_register_input_format(&wav_demuxer); |
437 #ifdef CONFIG_MUXERS | 437 #ifdef CONFIG_MUXERS |
438 av_register_output_format(&wav_oformat); | 438 av_register_output_format(&wav_muxer); |
439 #endif //CONFIG_MUXERS | 439 #endif //CONFIG_MUXERS |
440 return 0; | 440 return 0; |
441 } | 441 } |