1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

snowenc: check ff_get_buffer() return value

Fixes CID747722
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-12-13 14:26:03 +01:00
parent 7effc26ba7
commit 5cb080fa5e

View File

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