]> git.sesse.net Git - vlc/commitdiff
transcode: take codec earlier on so codec aliases are handled better, ref #7892
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 18 Dec 2012 14:04:12 +0000 (16:04 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 30 Dec 2012 11:24:27 +0000 (13:24 +0200)
modules/stream_out/transcode/audio.c

index 6bc6fdf7773dd64e69df2e305e02f7e27945302f..de7496dc15515671a74a741fbf5b2d838f8cc676 100644 (file)
@@ -250,6 +250,10 @@ int transcode_audio_new( sout_stream_t *p_stream,
     id->p_encoder->fmt_in.audio.i_bitspersample =
         aout_BitsPerSample( id->p_encoder->fmt_in.i_codec );
 
+    id->p_encoder->fmt_out.i_codec =
+        vlc_fourcc_GetCodec( AUDIO_ES, id->p_encoder->fmt_out.i_codec );
+
+
     /* Load user specified audio filters */
     if( p_sys->psz_af )
     {
@@ -285,10 +289,6 @@ int transcode_audio_new( sout_stream_t *p_stream,
     }
     fmt_last = id->p_encoder->fmt_in;
 
-    /* */
-    id->p_encoder->fmt_out.i_codec =
-        vlc_fourcc_GetCodec( AUDIO_ES, id->p_encoder->fmt_out.i_codec );
-
     return VLC_SUCCESS;
 }