Commit 0eacde7f authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

vorbisenc: setup channels from vorbis info

(cherry picked from commit fdb8982c)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1bf8ba3b
......@@ -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