From: Wim Taymans Date: Wed, 11 Apr 2012 15:40:04 +0000 (+0200) Subject: vorbisenc: fix channel mask X-Git-Tag: 1.19.3~511^2~6594 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2f0236319ca6f1a4dae020629c3fc2b83db49d4;p=platform%2Fupstream%2Fgstreamer.git vorbisenc: fix channel mask --- 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",