matroska: fix check for amount of data to read