opusdec: prevent 'channels=0' in caps
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 27 Apr 2020 07:40:23 +0000 (09:40 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 27 Apr 2020 08:07:33 +0000 (10:07 +0200)
commit4610bb59ac39246319a7b57c843715654c260a96
tree64d35745e3b1d92dce2d1ea86e0ee36483ea7f2a
parent6a1e5753453cce195133e5ee52bd5b29cdc17014
opusdec: prevent 'channels=0' in caps

gst_opus_channel_positions() should fail if caps contains "channels=0".
Prevent index underflow when indexing gst_opus_channel_positions[] (CID 1462590).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/644>
gst-libs/gst/pbutils/codec-utils.c