[libav-commits] svq1enc: Fix assignments in if()

Michael Niedermayer git at libav.org
Mon Jan 14 12:13:53 CET 2013


Module: libav
Branch: master
Commit: 30aeada3d8e94682035da15bca28dd6dce6bc3a8

Author:    Michael Niedermayer <michaelni at gmx.at>
Committer: Martin Storsjö <martin at martin.st>
Date:      Mon Jan 14 00:06:07 2013 +0100

svq1enc: Fix assignments in if()

Signed-off-by: Martin Storsjö <martin at martin.st>

---

 libavcodec/svq1enc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index 21531f6..5a80868 100644
--- a/libavcodec/svq1enc.c
+++ b/libavcodec/svq1enc.c
@@ -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;
     }



More information about the libav-commits mailing list