libopencore-amr: Fix assignments in if()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 13 Jan 2013 23:04:13 +0000 (00:04 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 20 Jan 2013 22:04:24 +0000 (23:04 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d6180aa29741334cf69f691b27ffceb33f49d36a)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libopencore-amr.c

index aa6dfa6..9a096f3 100644 (file)
@@ -258,7 +258,7 @@ static int amr_nb_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
             if (frame->nb_samples < avctx->frame_size - avctx->delay)
                 s->enc_last_frame = -1;
         }
-        if ((ret = ff_af_queue_add(&s->afq, frame) < 0)) {
+        if ((ret = ff_af_queue_add(&s->afq, frame)) < 0) {
             av_freep(&flush_buf);
             return ret;
         }