public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/vlc] epel9-next: Fix opus channel mapping family one parsing
Date: Mon, 20 Jul 2026 18:05:58 GMT	[thread overview]
Message-ID: <178457075807.1.12131295853275748168.rpms-vlc-08adee3a8b97@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/vlc
            Branch : epel9-next
            Commit : 08adee3a8b972814605c05bcb8378dac7379fb16
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2024-09-06T16:15:46-04:00
            Stats  : +36/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/vlc/c/08adee3a8b972814605c05bcb8378dac7379fb16?branch=epel9-next

            Log:
            Fix opus channel mapping family one parsing

https://code.videolan.org/videolan/vlc/-/merge_requests/5590

Fixes: rhbz#2307919

---
diff --git a/5590.patch b/5590.patch
new file mode 100644
index 0000000..38ec3cc
--- /dev/null
+++ b/5590.patch
@@ -0,0 +1,28 @@
+From a761e1c202b632e7865d18fcf11a2b9e285ea9ae Mon Sep 17 00:00:00 2001
+From: Tristan Matthews <tmatth@videolan.org>
+Date: Wed, 1 Feb 2023 23:39:36 -0500
+Subject: [PATCH] opus_header: fix channel mapping family 1 parsing
+
+Fixes #27808
+
+(cherry picked from commit 79fa6af0a98921f9d34933761f4fe20ef6c35309)
+---
+ modules/codec/opus_header.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/modules/codec/opus_header.c b/modules/codec/opus_header.c
+index 4069a5cf4613..b134b20b625b 100644
+--- a/modules/codec/opus_header.c
++++ b/modules/codec/opus_header.c
+@@ -205,7 +205,7 @@ int opus_header_parse(const unsigned char *packet, int len, OpusHeader *h)
+         h->nb_coupled = ch;
+ 
+         /* Multi-stream support */
+-        if(h->channel_mapping == 2)
++        if(h->channel_mapping <= 2)
+         {
+             if (h->nb_coupled + h->nb_streams > 255)
+                 return 0;
+-- 
+GitLab
+

diff --git a/vlc.spec b/vlc.spec
index c01d260..e70c68c 100644
--- a/vlc.spec
+++ b/vlc.spec
@@ -33,6 +33,14 @@ License:	GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause AND BSD-3-Claus
 URL:		https://www.videolan.org
 Source:		https://get.videolan.org/vlc/%{version}/vlc-%{version}.tar.xz
 Source:		macros.vlc
+
+## upstream patches
+# opus_header: fix channel mapping family 1 parsing (rhbz#2307919)
+Patch:		https://code.videolan.org/videolan/vlc/-/merge_requests/5590.patch
+
+## upstreamable patches
+
+## downstream patches
 # https://fedoraproject.org/wiki/Changes/CryptoPolicy
 Patch:		0001-Use-SYSTEM-wide-ciphers-for-gnutls.patch
 # Fix building with fdk-aac-2.0; backport for 3.0 from flathub

                 reply	other threads:[~2026-07-20 18:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178457075807.1.12131295853275748168.rpms-vlc-08adee3a8b97@fedoraproject.org \
    --to=yselkowi@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox