mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
audio: channel-mix: Fix channel count limit to be able to equal 64
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3958>
This commit is contained in:
parent
625f9aab09
commit
b2bdadd05b
1 changed files with 4 additions and 4 deletions
|
@ -833,8 +833,8 @@ gst_audio_channel_mixer_new_with_matrix (GstAudioChannelMixerFlags flags,
|
|||
|| format == GST_AUDIO_FORMAT_S32
|
||||
|| format == GST_AUDIO_FORMAT_F32
|
||||
|| format == GST_AUDIO_FORMAT_F64, NULL);
|
||||
g_return_val_if_fail (in_channels > 0 && in_channels < 64, NULL);
|
||||
g_return_val_if_fail (out_channels > 0 && out_channels < 64, NULL);
|
||||
g_return_val_if_fail (in_channels > 0 && in_channels <= 64, NULL);
|
||||
g_return_val_if_fail (out_channels > 0 && out_channels <= 64, NULL);
|
||||
|
||||
mix = g_slice_new0 (GstAudioChannelMixer);
|
||||
mix->in_channels = in_channels;
|
||||
|
@ -995,8 +995,8 @@ gst_audio_channel_mixer_new (GstAudioChannelMixerFlags flags,
|
|||
|| format == GST_AUDIO_FORMAT_S32
|
||||
|| format == GST_AUDIO_FORMAT_F32
|
||||
|| format == GST_AUDIO_FORMAT_F64, NULL);
|
||||
g_return_val_if_fail (in_channels > 0 && in_channels < 64, NULL);
|
||||
g_return_val_if_fail (out_channels > 0 && out_channels < 64, NULL);
|
||||
g_return_val_if_fail (in_channels > 0 && in_channels <= 64, NULL);
|
||||
g_return_val_if_fail (out_channels > 0 && out_channels <= 64, NULL);
|
||||
|
||||
matrix =
|
||||
gst_audio_channel_mixer_setup_matrix (flags, in_channels, in_position,
|
||||
|
|
Loading…
Reference in a new issue