audio-format: Add macro checking for validity of GstAudioFormatInfo
authorPhilippe Normand <philn@igalia.com>
Wed, 27 Jul 2022 08:39:52 +0000 (09:39 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 12 Dec 2022 19:39:10 +0000 (19:39 +0000)
commit3345d16aed07b55c1c2c12b0d203f6abe7fe5c99
treeb42f8f9bf5c297894ad70d565e3aaa8d4db621b3
parent7fd8e4001ca09577843ae06276787f38ee8f8016
audio-format: Add macro checking for validity of GstAudioFormatInfo

`gst_audio_format_info_fill_silence()` not properly checking the validity of its
input may lead it into an infinite loop.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2800>
subprojects/gst-plugins-base/gst-libs/gst/audio/audio-format.c
subprojects/gst-plugins-base/gst-libs/gst/audio/audio-format.h