From a44593a75ccc86d7ee5f177fbf8137972815d5e5 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 6 Jun 2024 17:28:50 +0000 Subject: [PATCH] Bug 1749046 - Even when the configuration of an encoder wouldn't change because the config is identical, the decoder config must be emitted. r=chunmin This fixes a test failure in audio encoder WPTs. Differential Revision: https://phabricator.services.mozilla.com/D199542 UltraBlame original commit: 022e47d17ccaf4408863a4a51aded62a86f1bbf2 --- dom/media/webcodecs/EncoderTemplate.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/dom/media/webcodecs/EncoderTemplate.cpp b/dom/media/webcodecs/EncoderTemplate.cpp index ee18e01815ed6..9844e98d09e61 100644 --- a/dom/media/webcodecs/EncoderTemplate.cpp +++ b/dom/media/webcodecs/EncoderTemplate.cpp @@ -5355,6 +5355,23 @@ to do return now +but +per +spec +the +config +/ +/ +must +be +output +next +time +a +packet +is +output +. if ( configDiff @@ -5365,6 +5382,10 @@ Empty ) ) { +mOutputNewDecoderConfig += +true +; LOG ( "