Increase MP3 sniffing distance

Issue: #2951

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158960483
This commit is contained in:
andrewlewis 2017-06-14 03:34:19 -07:00 committed by Oliver Woodman
parent e4617567a3
commit 810c120abc

View file

@ -78,7 +78,7 @@ public final class Mp3Extractor implements Extractor {
/** /**
* The maximum number of bytes to peek when sniffing, excluding the ID3 header, before giving up. * The maximum number of bytes to peek when sniffing, excluding the ID3 header, before giving up.
*/ */
private static final int MAX_SNIFF_BYTES = MpegAudioHeader.MAX_FRAME_SIZE_BYTES; private static final int MAX_SNIFF_BYTES = 16 * 1024;
/** /**
* Maximum length of data read into {@link #scratch}. * Maximum length of data read into {@link #scratch}.
*/ */