diff options
author | James Almer <jamrial@gmail.com> | 2017-11-12 00:44:26 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-11-12 00:44:26 -0300 |
commit | a629bc99fd111f9275c1e3b54dc358efeeae18d9 (patch) | |
tree | e2bb0679f4e6a6b75c368bc17551c87a4144d732 /libavcodec/libspeexenc.c | |
parent | 221d813599e4f6a276b4f862e072a0b967d70dd7 (diff) | |
parent | 1746c7c8f2f9a6c5eacb486426dd0a579b4b7498 (diff) | |
download | ffmpeg-a629bc99fd111f9275c1e3b54dc358efeeae18d9.tar.gz |
Merge commit '1746c7c8f2f9a6c5eacb486426dd0a579b4b7498'
* commit '1746c7c8f2f9a6c5eacb486426dd0a579b4b7498':
libspeexenc: Use speex_lib_get_mode instead of the speex_foo_mode data symbols
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libspeexenc.c')
-rw-r--r-- | libavcodec/libspeexenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/libspeexenc.c b/libavcodec/libspeexenc.c index a2b07a41cb..5264899fd7 100644 --- a/libavcodec/libspeexenc.c +++ b/libavcodec/libspeexenc.c @@ -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); |