extract ebml_read_binary() out of matroska_parse_block()