diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
index fb782a408c642e88aff1faff519d0cb5682a4a29..d15c138e8395a0faedf768f8f5853857a7adb5f7 100644
--- a/libavcodec/zmbvenc.c
+++ b/libavcodec/zmbvenc.c
@@ -312,8 +312,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
         return -1;
     }
 
-    avctx->coded_frame = &c->pic;
-
     return 0;
 }