]> git.sesse.net Git - vlc/commitdiff
Fixed a regression with avcodec due to 83f58a5076e659f63f47575c0c350b58367eaff0
authorLaurent Aimar <fenrir@videolan.org>
Tue, 5 May 2009 21:30:53 +0000 (23:30 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 5 May 2009 21:53:28 +0000 (23:53 +0200)
modules/codec/avcodec/audio.c

index c9cbd3148c86c2be16c373c00e19c4ad5fc2073b..79c0aa042fc98d6d73dcf5a0419c27c80ca2aa4b 100644 (file)
@@ -457,10 +457,12 @@ static void SetupOutputFormat( decoder_t *p_dec, bool b_trust )
     p_dec->fmt_out.audio.i_channels = p_sys->p_context->channels;
 
     /* */
-    if( p_sys->i_previous_channels == p_sys->p_context->channels )
-        return;
 #if defined(LIBAVCODEC_AUDIO_LAYOUT)
-    if( p_sys->i_previous_layout == p_sys->p_context->channel_layout )
+    if( p_sys->i_previous_channels == p_sys->p_context->channels &&
+        p_sys->i_previous_layout == p_sys->p_context->channel_layout )
+        return;
+#else
+    if( p_sys->i_previous_channels == p_sys->p_context->channels )
         return;
 #endif
     if( b_trust )