aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/svq1enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index 0c5971b4bb..ec540a25e3 100644
--- a/libavcodec/svq1enc.c
+++ b/libavcodec/svq1enc.c
@@ -595,9 +595,9 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
}
}
if (!s->last_picture->data[0]) {
- if ((ret = ff_get_buffer(avctx, s->last_picture, 0)) < 0) {
+ ret = ff_get_buffer(avctx, s->last_picture, 0);
+ if (ret < 0)
return ret;
- }
}
if (!s->scratchbuf) {
s->scratchbuf = av_malloc_array(s->current_picture->linesize[0], 16 * 3);