Mercurial > libavcodec.hg
comparison libamr.c @ 9653:a572a4628a5a libavcodec
Surround AMR_WB encoding code by appropriate #ifdefs.
This will help support the opencore AMR library.
author | diego |
---|---|
date | Fri, 15 May 2009 19:03:45 +0000 |
parents | 356079de3642 |
children | 7204dc2922be |
comparison
equal
deleted
inserted
replaced
9652:356079de3642 | 9653:a572a4628a5a |
---|---|
306 int frameCount; | 306 int frameCount; |
307 void *state; | 307 void *state; |
308 int mode; | 308 int mode; |
309 Word16 allow_dtx; | 309 Word16 allow_dtx; |
310 } AMRWBContext; | 310 } AMRWBContext; |
311 | |
312 #if CONFIG_LIBAMR_WB_ENCODER | |
311 | 313 |
312 #include <amrwb/enc_if.h> | 314 #include <amrwb/enc_if.h> |
313 | 315 |
314 static int getWBBitrateMode(int bitrate) | 316 static int getWBBitrateMode(int bitrate) |
315 { | 317 { |
407 NULL, | 409 NULL, |
408 .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, | 410 .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, |
409 .long_name = NULL_IF_CONFIG_SMALL("libamr-wb Adaptive Multi-Rate (AMR) Wide-Band"), | 411 .long_name = NULL_IF_CONFIG_SMALL("libamr-wb Adaptive Multi-Rate (AMR) Wide-Band"), |
410 }; | 412 }; |
411 | 413 |
414 #endif | |
415 | |
412 static av_cold int amr_wb_decode_init(AVCodecContext * avctx) | 416 static av_cold int amr_wb_decode_init(AVCodecContext * avctx) |
413 { | 417 { |
414 AMRWBContext *s = avctx->priv_data; | 418 AMRWBContext *s = avctx->priv_data; |
415 | 419 |
416 s->frameCount=0; | 420 s->frameCount=0; |