Commit 5cb080fa authored by Michael Niedermayer's avatar Michael Niedermayer

snowenc: check ff_get_buffer() return value

Fixes CID747722
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7effc26b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment