avcodec/cook: decoder supports init_cleanup capability
authorPaul B Mahol <onemda@gmail.com>
Sat, 8 Sep 2018 18:02:41 +0000 (20:02 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sat, 8 Sep 2018 18:02:41 +0000 (20:02 +0200)
libavcodec/cook.c

index 53cb838..c5f68c9 100644 (file)
@@ -1282,6 +1282,7 @@ AVCodec ff_cook_decoder = {
     .close          = cook_decode_close,
     .decode         = cook_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
     .sample_fmts    = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP,
                                                       AV_SAMPLE_FMT_NONE },
 };