Commit a629bc99 authored by James Almer's avatar James Almer

Merge commit '1746c7c8'

* commit '1746c7c8':
  libspeexenc: Use speex_lib_get_mode instead of the speex_foo_mode data symbols
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 221d8135 1746c7c8
......@@ -159,9 +159,9 @@ static av_cold int encode_init(AVCodecContext *avctx)
/* sample rate and encoding mode */
switch (avctx->sample_rate) {
case 8000: mode = &speex_nb_mode; break;
case 16000: mode = &speex_wb_mode; break;
case 32000: mode = &speex_uwb_mode; break;
case 8000: mode = speex_lib_get_mode(SPEEX_MODEID_NB); break;
case 16000: mode = speex_lib_get_mode(SPEEX_MODEID_WB); break;
case 32000: mode = speex_lib_get_mode(SPEEX_MODEID_UWB); break;
default:
av_log(avctx, AV_LOG_ERROR, "Sample rate of %d Hz is not supported. "
"Resample to 8, 16, or 32 kHz.\n", avctx->sample_rate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment