diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-13 14:26:03 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-13 14:26:03 +0100 |
commit | 5cb080fa5e198303a14a537c9388855ccd0a669b (patch) | |
tree | 160c679d6c0fa03e9be4b0424b861a3528a4a514 | |
parent | 7effc26ba74717bb9c808d96791c7cf98911d1a1 (diff) | |
download | ffmpeg-5cb080fa5e198303a14a537c9388855ccd0a669b.tar.gz |
snowenc: check ff_get_buffer() return value
Fixes CID747722
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/snowenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 02c3aaab38..de2c859302 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -239,7 +239,8 @@ static av_cold int encode_init(AVCodecContext *avctx) ff_set_cmp(&s->dsp, s->dsp.me_cmp, s->avctx->me_cmp); ff_set_cmp(&s->dsp, s->dsp.me_sub_cmp, s->avctx->me_sub_cmp); - ff_get_buffer(s->avctx, &s->input_picture); + if ((ret = ff_get_buffer(s->avctx, &s->input_picture)) < 0) + return ret; if(s->avctx->me_method == ME_ITER){ int i; |