opus: Fix crash when getting unexpected channel position
authorXavier Claessens <xavier.claessens@collabora.com>
Wed, 7 Jun 2023 18:24:46 +0000 (14:24 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 13 Jun 2023 08:23:59 +0000 (09:23 +0100)
commitb226b62ae331f8c69c1c09bf2e1719fd8d53318e
tree930586d5f1b01efe685e629b26928fe67fb7bca6
parent06586fd92faa6dc7eca2007a54ced3000ed7520b
opus: Fix crash when getting unexpected channel position

gst_opus_channel_names is a static array with only 13 items.
GstAudioChannelPosition have bigger values than that.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4843>
subprojects/gst-plugins-base/ext/opus/gstopusenc.c