X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fra144enc.c;h=bbd7b68eabe8dc94a6416848360983045b9879f7;hb=df4203ac6f00bb222e93438967a1e4b6209e7919;hp=9a8ac2b2e3b60d424c26eaa10caebea5cf8af5eb;hpb=19e1c8e4f203a9445aadfc683449968a59f9aa81;p=ffmpeg diff --git a/libavcodec/ra144enc.c b/libavcodec/ra144enc.c index 9a8ac2b2e3b..bbd7b68eabe 100644 --- a/libavcodec/ra144enc.c +++ b/libavcodec/ra144enc.c @@ -208,8 +208,8 @@ static void create_adapt_vect(float *vect, const int16_t *cb, int lag) static int adaptive_cb_search(const int16_t *adapt_cb, float *work, const float *coefs, float *data) { - int i, best_vect; - float score, gain, best_score, best_gain; + int i, av_uninit(best_vect); + float score, gain, best_score, av_uninit(best_gain); float exc[BLOCKSIZE]; gain = best_score = 0; @@ -536,7 +536,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, for (; i < frame->nb_samples; i++) ractx->curr_block[i] = samples[i] >> 2; - if ((ret = ff_af_queue_add(&ractx->afq, frame) < 0)) + if ((ret = ff_af_queue_add(&ractx->afq, frame)) < 0) return ret; } else ractx->last_frame = 1;