vlc | branch: master | Ilkka Ollakka <il...@videolan.org> | Tue Dec 18 16:04:12 
2012 +0200| [a8bd7a32c4fa4d65b14551b6e87ee2c6e3f00af0] | committer: Ilkka 
Ollakka

transcode: take codec earlier on so codec aliases are handled better, ref #7892

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8bd7a32c4fa4d65b14551b6e87ee2c6e3f00af0
---

 modules/stream_out/transcode/audio.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/stream_out/transcode/audio.c 
b/modules/stream_out/transcode/audio.c
index 6bc6fdf..de7496d 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -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;
 }
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to