Commit fdb8982c authored by Thomas Guillem's avatar Thomas Guillem

vorbisenc: setup channels from vorbis info

parent 81c5c582
......@@ -869,7 +869,16 @@ static int OpenEncoder( vlc_object_t *p_this )
}
}
assert(p_sys->vi.channels > 0 && (size_t) p_sys->vi.channels < ARRAY_SIZE(pi_channels_maps) );
p_enc->fmt_out.audio.i_channels = p_enc->fmt_in.audio.i_channels =
p_sys->vi.channels;
p_enc->fmt_out.audio.i_physical_channels =
p_enc->fmt_in.audio.i_physical_channels =
pi_channels_maps[p_sys->vi.channels];
p_sys->i_channels = p_enc->fmt_in.audio.i_channels;
p_sys->i_last_block_size = 0;
p_sys->i_samples_delay = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment