mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Expand frame drop workaround to Realme C11
Based on on-device testing, this device seems to have the same issue as Moto G (20) where frames are dropped despite configuring the decoder not to drop frames. PiperOrigin-RevId: 581943805
This commit is contained in:
parent
c763ed7941
commit
330713f687
1 changed files with 5 additions and 3 deletions
|
|
@ -3226,11 +3226,13 @@ public final class Util {
|
||||||
// bounds. From API 29, if the app targets API 29 or later, the {@link
|
// bounds. From API 29, if the app targets API 29 or later, the {@link
|
||||||
// MediaFormat#KEY_ALLOW_FRAME_DROP} key prevents frame dropping even when the surface is
|
// MediaFormat#KEY_ALLOW_FRAME_DROP} key prevents frame dropping even when the surface is
|
||||||
// full.
|
// full.
|
||||||
// "moto g(20) API 30" might drop frames despite setting {@link
|
// Some API 30 devices might drop frames despite setting {@link
|
||||||
// MediaFormat#KEY_ALLOW_FRAME_DROP} to 0. See b/307518793.
|
// MediaFormat#KEY_ALLOW_FRAME_DROP} to 0. See b/307518793 and b/289983935.
|
||||||
return SDK_INT < 29
|
return SDK_INT < 29
|
||||||
|| context.getApplicationInfo().targetSdkVersion < 29
|
|| context.getApplicationInfo().targetSdkVersion < 29
|
||||||
|| (SDK_INT == 30 && Ascii.equalsIgnoreCase(MODEL, "moto g(20)"));
|
|| (SDK_INT == 30
|
||||||
|
&& (Ascii.equalsIgnoreCase(MODEL, "moto g(20)")
|
||||||
|
|| Ascii.equalsIgnoreCase(MODEL, "rmx3231")));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue