Browse Source

avcodec/gifdec: check ff_lzw_decode_open() for failure

tags/n4.1
Paul B Mahol 6 years ago
parent
commit
158043bae8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/gifdec.c

+ 2
- 0
libavcodec/gifdec.c View File

@@ -451,6 +451,8 @@ static av_cold int gif_decode_init(AVCodecContext *avctx)
if (!s->frame)
return AVERROR(ENOMEM);
ff_lzw_decode_open(&s->lzw);
if (!s->lzw)
return AVERROR(ENOMEM);
return 0;
}



Loading…
Cancel
Save