vorbisenc: fix channel mask
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 11 Apr 2012 15:40:04 +0000 (17:40 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 11 Apr 2012 15:40:04 +0000 (17:40 +0200)
ext/vorbis/gstvorbisenc.c

index 3ba24d7..e9cd9fd 100644 (file)
@@ -267,7 +267,7 @@ gst_vorbis_enc_generate_sink_caps (void)
     const GstAudioChannelPosition *pos = gst_vorbis_channel_positions[i - 1];
 
     for (c = 0; c < i; c++) {
-      channel_mask |= G_GUINT64_CONSTANT (1) << pos[i];
+      channel_mask |= G_GUINT64_CONSTANT (1) << pos[c];
     }
 
     structure = gst_structure_new ("audio/x-raw",