From b2f0236319ca6f1a4dae020629c3fc2b83db49d4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 11 Apr 2012 17:40:04 +0200 Subject: [PATCH] vorbisenc: fix channel mask --- ext/vorbis/gstvorbisenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c index 3ba24d7..e9cd9fd 100644 --- a/ext/vorbis/gstvorbisenc.c +++ b/ext/vorbis/gstvorbisenc.c @@ -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", -- 2.7.4