avcodec/vmnc: Check available space against chunks before reget_buffer()