From: Sebastian Dröge Date: Mon, 17 Dec 2012 12:41:42 +0000 (+0100) Subject: avcodecmap: Correctly convert GStreamer channel positions to libav channel mask X-Git-Tag: 1.1.1~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ec5fea211fad340954b3274eeee258809a026d2;p=platform%2Fupstream%2Fgst-libav.git avcodecmap: Correctly convert GStreamer channel positions to libav channel mask --- diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c index 989efc8..d4ed1ca 100644 --- a/ext/libav/gstavcodecmap.c +++ b/ext/libav/gstavcodecmap.c @@ -80,7 +80,7 @@ gst_ffmpeg_channel_positions_to_layout (GstAudioChannelPosition * pos, for (i = 0; i < channels; i++) { for (j = 0; j < G_N_ELEMENTS (_ff_to_gst_layout); j++) { if (_ff_to_gst_layout[j].gst == pos[i]) { - ret |= _ff_to_gst_layout[i].ff; + ret |= _ff_to_gst_layout[j].ff; channels_found++; break; }