Force wrapping of HLS ID3 timestamp

Merge of https://github.com/google/ExoPlayer/pull/3495

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=177057183
This commit is contained in:
olly 2017-11-27 12:42:53 -08:00 committed by Oliver Woodman
parent 95de9c96fe
commit a0f6bba842

View file

@ -306,7 +306,7 @@ import java.util.concurrent.atomic.AtomicInteger;
if (PRIV_TIMESTAMP_FRAME_OWNER.equals(privFrame.owner)) {
System.arraycopy(privFrame.privateData, 0, id3Data.data, 0, 8 /* timestamp size */);
id3Data.reset(8);
return id3Data.readLong() & ((1L << 33) - 1L);
return id3Data.readLong() & 0x1FFFFFFFFL;
}
}
}