Commit 451fc5c1 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by GStreamer Marge Bot
Browse files

wavenc: Fix writing of the channel mask with >2 channels

The channel position is an enum but the conversion code assumed it's a
mask. Convert accordingly.
parent 9c864142
......@@ -250,7 +250,7 @@ gstmask_to_wavmask (guint64 gstmask, GstAudioChannelPosition * pos)
return 0;
for (k = 0; k < G_N_ELEMENTS (wav_pos); ++k) {
if (gstmask & wav_pos[k]) {
if (gstmask & (G_GUINT64_CONSTANT (1) << wav_pos[k])) {
ret |= mask;
pos[chan++] = wav_pos[k];
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment