mirror of
https://github.com/androidx/media.git
synced 2025-05-03 21:57:46 +08:00
Merge pull request #3495 from simophin/patch-1
Guard against out-of-range timestamp
This commit is contained in:
commit
ec2fbe5d1e
@ -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();
|
||||
return id3Data.readLong() & ((1L << 33) - 1L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user