Browse Source

snowenc: check ff_get_buffer() return value

Fixes CID747722
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
5cb080fa5e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/snowenc.c

+ 2
- 1
libavcodec/snowenc.c 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;


Loading…
Cancel
Save