nellymoserenc: Fix assignments in if()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 13 Jan 2013 23:05:30 +0000 (00:05 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 14 Jan 2013 04:05:37 +0000 (05:05 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/nellymoserenc.c

index 4317e32..0fdec2c 100644 (file)
@@ -397,7 +397,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
             if (frame->nb_samples >= NELLY_BUF_LEN)
                 s->last_frame = 1;
         }
-        if ((ret = ff_af_queue_add(&s->afq, frame) < 0))
+        if ((ret = ff_af_queue_add(&s->afq, frame)) < 0)
             return ret;
     } else {
         memset(s->buf + NELLY_BUF_LEN, 0, NELLY_SAMPLES * sizeof(*s->buf));