From 0ec5fea211fad340954b3274eeee258809a026d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 17 Dec 2012 13:41:42 +0100 Subject: [PATCH] avcodecmap: Correctly convert GStreamer channel positions to libav channel mask --- ext/libav/gstavcodecmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4