Mercurial > libavformat.hg
comparison beosaudio.cpp @ 1167:d89d7ef290da libavformat
give AVInput/OutputFormat structs consistent names
author | mru |
---|---|
date | Sun, 09 Jul 2006 23:40:53 +0000 |
parents | edbe5c3717f9 |
children | 0899bfe4105c |
comparison
equal
deleted
inserted
replaced
1166:e89500dd9064 | 1167:d89d7ef290da |
---|---|
417 | 417 |
418 audio_close(s); | 418 audio_close(s); |
419 return 0; | 419 return 0; |
420 } | 420 } |
421 | 421 |
422 static AVInputFormat audio_in_format = { | 422 static AVInputFormat audio_demuxer = { |
423 "audio_device", | 423 "audio_device", |
424 "audio grab and output", | 424 "audio grab and output", |
425 sizeof(AudioData), | 425 sizeof(AudioData), |
426 NULL, | 426 NULL, |
427 audio_read_header, | 427 audio_read_header, |
429 audio_read_close, | 429 audio_read_close, |
430 NULL, | 430 NULL, |
431 AVFMT_NOFILE, | 431 AVFMT_NOFILE, |
432 }; | 432 }; |
433 | 433 |
434 AVOutputFormat audio_out_format = { | 434 AVOutputFormat audio_muxer = { |
435 "audio_device", | 435 "audio_device", |
436 "audio grab and output", | 436 "audio grab and output", |
437 "", | 437 "", |
438 "", | 438 "", |
439 sizeof(AudioData), | 439 sizeof(AudioData), |
452 extern "C" { | 452 extern "C" { |
453 | 453 |
454 int audio_init(void) | 454 int audio_init(void) |
455 { | 455 { |
456 main_thid = find_thread(NULL); | 456 main_thid = find_thread(NULL); |
457 av_register_input_format(&audio_in_format); | 457 av_register_input_format(&audio_demuxer); |
458 av_register_output_format(&audio_out_format); | 458 av_register_output_format(&audio_muxer); |
459 return 0; | 459 return 0; |
460 } | 460 } |
461 | 461 |
462 } // "C" | 462 } // "C" |
463 | 463 |