svq1enc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-01-14 00:06:07 +01:00
parent e2704381e5
commit 37be1d802f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}