aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-14 00:06:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-14 05:05:38 +0100
commit37be1d802f2e2c21036a54bb15423a41d5aabefb (patch)
treeea71904d4ef3aea7b59aabd3aeeaa5c2728cf669
parente2704381e5f13f54506f69b7a05a05dc27ce1d7d (diff)
downloadffmpeg-37be1d802f2e2c21036a54bb15423a41d5aabefb.tar.gz
svq1enc: Fix assignments in if()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/svq1enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index 2850ab0284..1b32bbc533 100644
--- a/libavcodec/svq1enc.c
+++ b/libavcodec/svq1enc.c
@@ -538,7 +538,7 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
int i, ret;
if ((ret = ff_alloc_packet2(avctx, 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)
return ret;
if (avctx->pix_fmt != AV_PIX_FMT_YUV410P) {
@@ -547,7 +547,7 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
}
if (!s->current_picture.data[0]) {
- if ((ret = ff_get_buffer(avctx, &s->current_picture) < 0) ||
+ if ((ret = ff_get_buffer(avctx, &s->current_picture))< 0 ||
(ret = ff_get_buffer(avctx, &s->last_picture)) < 0) {
return ret;
}