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 /libavcodec/snowenc.c | |
parent | 7effc26ba74717bb9c808d96791c7cf98911d1a1 (diff) | |
download | ffmpeg-streaming-5cb080fa5e198303a14a537c9388855ccd0a669b.zip ffmpeg-streaming-5cb080fa5e198303a14a537c9388855ccd0a669b.tar.gz |
snowenc: check ff_get_buffer() return value
Fixes CID747722
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowenc.c')
-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 02c3aaa..de2c859 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; |