long inputLength = input.getLength(); int bytesToSearch = (int) (inputLength == C.LENGTH_UNBOUNDED || inputLength > SEARCH_LENGTH ? SEARCH_LENGTH : inputLength);
private static boolean sniffInternal(ExtractorInput input, int searchLength, boolean fragmented) throws IOException, InterruptedException { long inputLength = input.getLength(); int bytesToSearch = (int) (inputLength == C.LENGTH_UNBOUNDED || inputLength > searchLength ? searchLength : inputLength);