mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
riff: don't use NULL arrays
This commit is contained in:
parent
9e072ea844
commit
1317811af6
1 changed files with 3 additions and 2 deletions
|
@ -1147,8 +1147,9 @@ gst_riff_create_audio_caps (guint16 codec_id,
|
|||
gint channels_max = 2;
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < 18; i++)
|
||||
channel_reorder_map[i] = -1;
|
||||
if (channel_reorder_map)
|
||||
for (i = 0; i < 18; i++)
|
||||
channel_reorder_map[i] = -1;
|
||||
|
||||
switch (codec_id) {
|
||||
case GST_RIFF_WAVE_FORMAT_PCM: /* PCM */
|
||||
|
|
Loading…
Reference in a new issue