Commit 8c233c51 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: set EncodeAudio/Video at the end

parent 99ab06c7
......@@ -296,9 +296,6 @@ int OpenEncoder( vlc_object_t *p_this )
p_enc->p_sys = p_sys;
p_sys->p_codec = p_codec;
p_enc->pf_encode_video = EncodeVideo;
p_enc->pf_encode_audio = EncodeAudio;
p_sys->p_buffer = NULL;
p_sys->i_buffer_out = 0;
......@@ -831,6 +828,9 @@ int OpenEncoder( vlc_object_t *p_this )
}
msg_Dbg( p_enc, "found encoder %s", psz_namecodec );
p_enc->pf_encode_video = EncodeVideo;
p_enc->pf_encode_audio = EncodeAudio;
return VLC_SUCCESS;
error:
......
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