summaryrefslogtreecommitdiff
path: root/ext/libav/gstavcodecmap.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-17 13:41:42 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-17 13:41:42 +0100
commit0ec5fea211fad340954b3274eeee258809a026d2 (patch)
treed5a7590884555481544048b79a48d1511d5605ad /ext/libav/gstavcodecmap.c
parenta6ede95de766d23375af312a6f96cb66b13ded51 (diff)
downloadgst-libav-0ec5fea211fad340954b3274eeee258809a026d2.tar.gz
avcodecmap: Correctly convert GStreamer channel positions to libav channel mask
Diffstat (limited to 'ext/libav/gstavcodecmap.c')
-rw-r--r--ext/libav/gstavcodecmap.c2
1 files changed, 1 insertions, 1 deletions
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;
}