From 86f0f8b67f54ddae25af2a8ed1a64cb5d57fc2fe Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Wed, 6 Apr 2022 09:46:30 -0400 Subject: [PATCH] rtpopusdepay: assume 2 channels if sprop-stereo is missing Fixes #1064 Part-of: --- subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c index 26434e84f2..3dc4fba112 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c @@ -206,8 +206,10 @@ gst_rtp_opus_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps) GST_WARNING_OBJECT (depayload, "Unknown sprop-stereo value '%s'", sprop_stereo); } else { - /* sprop-stereo defaults to mono as per RFC 7587. */ - gst_caps_set_simple (srccaps, "channels", G_TYPE_INT, 1, NULL); + /* Although sprop-stereo defaults to mono as per RFC 7587, this just means + that the signal is likely mono and can be safely downmixed, it may + still be stereo at times. */ + gst_caps_set_simple (srccaps, "channels", G_TYPE_INT, 2, NULL); } }