From 9d74d91a39f3e183d508a915734c70628176cac9 Mon Sep 17 00:00:00 2001 From: Ram Mohan M Date: Fri, 20 Jun 2025 12:20:19 +0000 Subject: [PATCH] C2SoftDav1dDec: configure decoder to output only one layer in SVC mode dav1d default settings are configured to output all layers for svc clips. The plugin is not designed to handle this. Disable outputting all layers buffers Bug: 424384335 Bug: 427113482 Test: Manual Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ba571df05a6e65545dbda4c9988c2bc23aae8f16) Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:25c66cbc720dd6c28aa1abe32eecda1ea4878328 Merged-In: I829e2cc4da755a713c6d0994771fc269d47bbbb5 Change-Id: I829e2cc4da755a713c6d0994771fc269d47bbbb5 --- media/codec2/components/dav1d/C2SoftDav1dDec.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/media/codec2/components/dav1d/C2SoftDav1dDec.cpp b/media/codec2/components/dav1d/C2SoftDav1dDec.cpp index 4ec26d6251..8f5081a970 100644 --- a/media/codec2/components/dav1d/C2SoftDav1dDec.cpp +++ b/media/codec2/components/dav1d/C2SoftDav1dDec.cpp @@ -542,6 +542,7 @@ bool C2SoftDav1dDec::initDecoder() { Dav1dSettings lib_settings; dav1d_default_settings(&lib_settings); + lib_settings.all_layers = 0; int cpu_count = GetCPUCoreCount(); lib_settings.n_threads = std::max(cpu_count / 2, 1); // use up to half the cores by default. -- GitLab