aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-03 22:39:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-03 22:40:46 +0100
commitacfb4ede2f6b59963381c469fe002c44132f02e6 (patch)
tree87505e485db964049d19684dc62904171eec7561
parent94337f8c2dd9aecf5f8bd219431976d5e982a697 (diff)
parent6f7a32839d1b913be8170e91c3ac9816b314da21 (diff)
downloadffmpeg-acfb4ede2f6b59963381c469fe002c44132f02e6.tar.gz
Merge commit '6f7a32839d1b913be8170e91c3ac9816b314da21'
* commit '6f7a32839d1b913be8170e91c3ac9816b314da21': svq1enc: correctly handle memory error and allocations Conflicts: libavcodec/svq1enc.c See: 79888388e7c4ca596354f1c093e1c655df7824b8 Merged-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 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);