Skip to content

Commit

Permalink
Lower number of samples for frame rate detection
Browse files Browse the repository at this point in the history
  • Loading branch information
moneytoo committed Dec 21, 2024
1 parent 6f64b48 commit 2a09047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/brouken/player/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ public static float getFrameRate(Context context, Uri videoUri) {
String mimeType = format.getString(MediaFormat.KEY_MIME);
if (mimeType != null && mimeType.startsWith("video/")) {
mediaExtractor.selectTrack(i);
while (timestamps.size() < 1000 + ignoreSamples) {
while (timestamps.size() < 350 + ignoreSamples) {
long timestamp = mediaExtractor.getSampleTime();
if (timestamp < 0) {
break;
Expand Down

0 comments on commit 2a09047

Please sign in to comment.