diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 9a3221414a8fdff47e0b1c3d697fd20031cb6790..07655b01ce0757312e65ff9d49d3295407e198ba 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -1068,6 +1068,9 @@ static int cook_decode_frame(AVCodecContext *avctx,
 
     *data_size = decode_subpacket(q, buf, avctx->block_align, data);
 
+    /* Discard the first two frames: no valid audio. */
+    if (avctx->frame_number < 2) *data_size = 0;
+
     return avctx->block_align;
 }