Skip to content

Commit

Permalink
Merge pull request #3495 from simophin/patch-1
Browse files Browse the repository at this point in the history
Guard against out-of-range timestamp
  • Loading branch information
ojw28 authored Nov 27, 2017
2 parents 818d5a0 + 77d8c13 commit ec2fbe5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private long peekId3PrivTimestamp(ExtractorInput input) throws IOException, Inte
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);
}
}
}
Expand Down

0 comments on commit ec2fbe5

Please sign in to comment.