diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c
index 252dd886454ba2d1c10915b693136ead0a05bba4..7687f0ef6869bbb8b0b7cb527eee80e48526f8de 100644
--- a/libavcodec/mimic.c
+++ b/libavcodec/mimic.c
@@ -293,7 +293,8 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
     height     = bytestream_get_le16(&buf);
     buf       += 4; /* some constant */
     is_pframe  = bytestream_get_le32(&buf);
-    num_coeffs = bytestream_get_le32(&buf);
+    num_coeffs = bytestream_get_byte(&buf);
+    buf       += 3; /* some constant */
 
     if(!ctx->avctx) {
         int i;