avcodec/gifdec: set .caps_internal
authorPaul B Mahol <onemda@gmail.com>
Sun, 9 Sep 2018 09:35:14 +0000 (11:35 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 9 Sep 2018 09:35:14 +0000 (11:35 +0200)
libavcodec/gifdec.c

index a3116e4..54f1d4c 100644 (file)
@@ -561,5 +561,7 @@ AVCodec ff_gif_decoder = {
     .close          = gif_decode_close,
     .decode         = gif_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE |
+                      FF_CODEC_CAP_INIT_CLEANUP,
     .priv_class     = &decoder_class,
 };