Mercurial > libavcodec.hg
comparison pcm.c @ 11560:8a4984c5cacc libavcodec
Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.
author | stefano |
---|---|
date | Tue, 30 Mar 2010 23:30:55 +0000 |
parents | bdf4a9ca162a |
children | 7d324b40c3d6 |
comparison
equal
deleted
inserted
replaced
11559:444f4b594fdb | 11560:8a4984c5cacc |
---|---|
514 | 514 |
515 #if CONFIG_ENCODERS | 515 #if CONFIG_ENCODERS |
516 #define PCM_ENCODER(id,sample_fmt_,name,long_name_) \ | 516 #define PCM_ENCODER(id,sample_fmt_,name,long_name_) \ |
517 AVCodec name ## _encoder = { \ | 517 AVCodec name ## _encoder = { \ |
518 #name, \ | 518 #name, \ |
519 CODEC_TYPE_AUDIO, \ | 519 AVMEDIA_TYPE_AUDIO, \ |
520 id, \ | 520 id, \ |
521 0, \ | 521 0, \ |
522 pcm_encode_init, \ | 522 pcm_encode_init, \ |
523 pcm_encode_frame, \ | 523 pcm_encode_frame, \ |
524 pcm_encode_close, \ | 524 pcm_encode_close, \ |
532 | 532 |
533 #if CONFIG_DECODERS | 533 #if CONFIG_DECODERS |
534 #define PCM_DECODER(id,sample_fmt_,name,long_name_) \ | 534 #define PCM_DECODER(id,sample_fmt_,name,long_name_) \ |
535 AVCodec name ## _decoder = { \ | 535 AVCodec name ## _decoder = { \ |
536 #name, \ | 536 #name, \ |
537 CODEC_TYPE_AUDIO, \ | 537 AVMEDIA_TYPE_AUDIO, \ |
538 id, \ | 538 id, \ |
539 sizeof(PCMDecode), \ | 539 sizeof(PCMDecode), \ |
540 pcm_decode_init, \ | 540 pcm_decode_init, \ |
541 NULL, \ | 541 NULL, \ |
542 NULL, \ | 542 NULL, \ |