Commit ca446ef3 authored by Ilkka Ollakka's avatar Ilkka Ollakka

twolame: set pf_encode at the end

parent b747dcce
......@@ -161,7 +161,6 @@ static int OpenEncoder( vlc_object_t *p_this )
return VLC_ENOMEM;
p_enc->p_sys = p_sys;
p_enc->pf_encode_audio = Encode;
p_enc->fmt_in.i_codec = VLC_CODEC_S16N;
p_enc->fmt_out.i_cat = AUDIO_ES;
......@@ -238,6 +237,8 @@ static int OpenEncoder( vlc_object_t *p_this )
return -VLC_EGENERIC;
}
p_enc->pf_encode_audio = Encode;
p_sys->i_nb_samples = 0;
return VLC_SUCCESS;
......
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