Skip to content

Commit a66dfa8

Browse files
dway123microkatz
authored andcommitted
Apply tone mapping workaround to Pixel Watch as well.
Not sure what BUILD.ID the fix will first be applied on though. PiperOrigin-RevId: 485389618 (cherry picked from commit 91b286c)
1 parent f5afec9 commit a66dfa8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/transformer/src/main/java/androidx/media3/transformer/VideoTranscodingSamplePipeline.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,10 @@ private static TransformationRequest createSupportedTransformationRequest(
294294

295295
private static boolean deviceNeedsNoToneMappingWorkaround() {
296296
// Pixel build ID prefix does not support tone mapping. See http://b/249297370#comment8.
297-
return Util.MANUFACTURER.equals("Google") && Build.ID.startsWith("TP1A");
297+
return Util.MANUFACTURER.equals("Google")
298+
&& (
299+
/* Pixel 6 */ Build.ID.startsWith("TP1A")
300+
|| Build.ID.startsWith(/* Pixel Watch */ "rwd9.220429.053"));
298301
}
299302

300303
/**

0 commit comments

Comments
 (0)