diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
index b01ce1bcf6e8ecef1acd61a132445b4600c9d0aa..9e27a2caad04581c284da32afa70f67a0647089a 100644
--- a/libavcodec/zmbv.c
+++ b/libavcodec/zmbv.c
@@ -647,4 +647,5 @@ AVCodec ff_zmbv_decoder = {
     .close          = decode_end,
     .decode         = decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
 };