]> git.sesse.net Git - vlc/commitdiff
faad: set decode_audio at the end
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 2 Oct 2013 07:50:58 +0000 (10:50 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 9 Jan 2014 08:40:08 +0000 (10:40 +0200)
modules/codec/faad.c

index 44919f5df8bd9dac82f2f5f3603b5b11ae00c37c..bf1b004a75a8789cf056c1c44b451809244de6ab 100644 (file)
@@ -147,7 +147,6 @@ static int Open( vlc_object_t *p_this )
     p_dec->fmt_out.i_cat = AUDIO_ES;
 
     p_dec->fmt_out.i_codec = HAVE_FPU ? VLC_CODEC_FL32 : VLC_CODEC_S16N;
-    p_dec->pf_decode_audio = DecodeBlock;
 
     p_dec->fmt_out.audio.i_physical_channels =
         p_dec->fmt_out.audio.i_original_channels = 0;
@@ -195,6 +194,8 @@ static int Open( vlc_object_t *p_this )
     p_dec->b_need_packetized = true;
 
     p_sys->b_sbr = p_sys->b_ps = false;
+
+    p_dec->pf_decode_audio = DecodeBlock;
     return VLC_SUCCESS;
 }