The maximum value of sub_blocks is 8, a safe size to always allocate on stack. Originally committed as revision 23797 to svn://svn.ffmpeg.org/ffmpeg/trunk