Increase gapless trim sample count

PiperOrigin-RevId: 247348352
This commit is contained in:
andrewlewis 2019-05-09 04:40:24 +01:00 committed by Oliver Woodman
parent b3ae1d3fed
commit 887116cd2d

View file

@ -60,7 +60,7 @@ import java.util.List;
* The threshold number of samples to trim from the start/end of an audio track when applying an
* edit below which gapless info can be used (rather than removing samples from the sample table).
*/
private static final int MAX_GAPLESS_TRIM_SIZE_SAMPLES = 3;
private static final int MAX_GAPLESS_TRIM_SIZE_SAMPLES = 4;
/** The magic signature for an Opus Identification header, as defined in RFC-7845. */
private static final byte[] opusMagic = Util.getUtf8Bytes("OpusHead");