avcodecmap: Correctly convert GStreamer channel positions to libav channel mask

This commit is contained in:
Sebastian Dröge 2012-12-17 13:41:42 +01:00
parent a6ede95de7
commit 0ec5fea211

View file

@ -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;
}