diff --git a/libavcodec/cook.c b/libavcodec/cook.c index df85c7d431..923c8e3756 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -1010,7 +1010,7 @@ static int cook_decode_frame(AVCodecContext *avctx, for(i=1;inum_subpackets;i++){ q->subpacket[i].size = 2 * buf[avctx->block_align - q->num_subpackets + i]; - q->subpacket[0].size -= (q->subpacket[i].size + 1); + q->subpacket[0].size -= q->subpacket[i].size + 1; } /* decode supbackets */