[FFmpeg-devel] [PATCH 12/16] svq1enc: Fix assignments in if()
Michael Niedermayer
michaelni at gmx.at
Mon Jan 14 00:20:21 CET 2013
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavcodec/svq1enc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index 2850ab0..1b32bbc 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;
}
--
1.7.9.5
More information about the ffmpeg-devel
mailing list