avcodec/vb: Check for end of bytestream before reading blocktype