<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>286526</bug_id>
          
          <creation_ts>2025-01-24 23:44:10 -0800</creation_ts>
          <short_desc>[GStreamer] imported/w3c/web-platform-tests/webcodecs/audioDecoder-codec-specific.https.any.html?opus is a permanent failure.</short_desc>
          <delta_ts>2025-03-22 07:57:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=284671</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>286530</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2089724</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-01-24 23:44:10 -0800</bug_when>
    <thetext>Seen in https://ews-build.s3-us-west-2.amazonaws.com/WPE-WK2-Tests-EWS/4379e0fc-66975/results.html

In bug 284671 we modified the tests to actually count if the right amount of frames have been decoded.

It appears that for all PCM tests, the GStreamer AudioDecoder only decode half the amount of frames required.

```
--- /home/ews/worker/WPE-WK2-Tests-EWS/build/layout-test-results/imported/w3c/web-platform-tests/webcodecs/audioDecoder-codec-specific.https.any_pcm_s16-expected.txt
+++ /home/ews/worker/WPE-WK2-Tests-EWS/build/layout-test-results/imported/w3c/web-platform-tests/webcodecs/audioDecoder-codec-specific.https.any_pcm_s16-actual.txt
@@ -3,9 +3,9 @@
 PASS Test that AudioDecoder.isConfigSupported() returns a parsed configuration
 PASS Test configure()
 PASS Verify closed AudioDecoder operations
-PASS Test decoding
-PASS Test decoding a with negative timestamp
-PASS Test decoding after flush
+FAIL Test decoding assert_approx_equals: number of decoded frames matches expected 10240 +/- 0 but got 5120
+FAIL Test decoding a with negative timestamp assert_approx_equals: number of decoded frames matches expected 1200 +/- 0 but got 600
+FAIL Test decoding after flush assert_approx_equals: number of decoded frames matches expected 1200 +/- 0 but got 600
 PASS Test reset during flush
 PASS AudioDecoder decodeQueueSize test
 ```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2089740</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-01-25 03:02:10 -0800</bug_when>
    <thetext>The pcm failures are fixed in bug 286530. This one here is now only about the opus decoder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105285</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-03-22 07:57:57 -0700</bug_when>
    <thetext>This is passing after the last WPT sync.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>