Skip to content

Commit 7afeaeb

Browse files
fix(YouTube - Spoof video streams): Do not allow VR AV1 if "Force AVC" is enabled
1 parent 60a581a commit 7afeaeb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/spoof/SpoofVideoStreamsPatch.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ public boolean isAvailable() {
2929
public static void setClientOrderToUse() {
3030
ClientType client = Settings.SPOOF_VIDEO_STREAMS_CLIENT_TYPE.get();
3131

32-
if (client == ANDROID_VR_1_43_32 && Settings.SPOOF_VIDEO_STREAMS_AV1.get()) {
32+
// Use VR 1.61 client that has AV1 if user settings allow it.
33+
// AVC cannot be forced with VR 1.61 because it uses VP9 and AV1.
34+
// If both settings are on, then force AVC takes priority and VR 1.43 is used.
35+
if (client == ANDROID_VR_1_43_32 && Settings.SPOOF_VIDEO_STREAMS_AV1.get()
36+
&& !Settings.FORCE_AVC_CODEC.get()) {
3337
client = ANDROID_VR_1_61_48;
3438
}
3539

0 commit comments

Comments
 (0)