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:
parent
7effc26ba7
commit
5cb080fa5e
@ -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…
Reference in New Issue
Block a user