diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c index 87baee4ca5..ee21e529ee 100644 --- a/libavcodec/qcelpdec.c +++ b/libavcodec/qcelpdec.c @@ -600,7 +600,7 @@ void interpolate_lpc(QCELPContext *q, const float *curr_lspf, float *lpc, ff_qcelp_lspf2lpc(curr_lspf, lpc); } -static int buf_size2bitrate(const int buf_size) +static qcelp_packet_rate buf_size2bitrate(const int buf_size) { switch(buf_size) { @@ -611,7 +611,7 @@ static int buf_size2bitrate(const int buf_size) case 1: return SILENCE; } - return -1; + return I_F_Q; } /**