svq1enc: Fix assignments in if()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 13 Jan 2013 23:06:07 +0000 (00:06 +0100)
committerMartin Storsjö <martin@martin.st>
Mon, 14 Jan 2013 11:12:49 +0000 (13:12 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/svq1enc.c

index 21531f636df046d1dc78e072533a00648c92182f..5a80868139405a22987689855e5495b9968984d4 100644 (file)
@@ -540,7 +540,7 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 
     if (!pkt->data &&
         (ret = av_new_packet(pkt, s->y_block_width * s->y_block_height *
-                             MAX_MB_BYTES * 3 + FF_MIN_BUFFER_SIZE) < 0)) {
+                             MAX_MB_BYTES * 3 + FF_MIN_BUFFER_SIZE)) < 0) {
         av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
         return ret;
     }