[vlc-commits] aout: simplify

Thomas Guillem git at videolan.org
Mon Sep 26 17:13:32 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Sep 26 17:06:39 2016 +0200| [5b6d77b00fd8cecd007bce37c67622ca93c59d0f] | committer: Thomas Guillem

aout: simplify

Use the i_channels value that is set just before.

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

 src/audio_output/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/audio_output/common.c b/src/audio_output/common.c
index 5e597d7..60438c6 100644
--- a/src/audio_output/common.c
+++ b/src/audio_output/common.c
@@ -92,7 +92,7 @@ void aout_FormatPrepare( audio_sample_format_t * p_format )
     if( p_format->i_bitspersample > 0 )
     {
         p_format->i_bytes_per_frame = ( p_format->i_bitspersample / 8 )
-                                    * aout_FormatNbChannels( p_format );
+                                    * p_format->i_channels;
         p_format->i_frame_length = 1;
     }
 }



More information about the vlc-commits mailing list