Same as it is handled in ffmpeg, allows using -ch_layout codec option. Signed-off-by: Marton Balint <cus@passwd.hu>