[vlc-devel] commit: Fixed typo in avcodec audio. (Laurent Aimar )

git version control git at videolan.org
Sun May 3 19:56:49 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun May  3 19:54:56 2009 +0200| [868b85c2f2c599e26a5ab897ffd351a1dff9a48c] | committer: Laurent Aimar 

Fixed typo in avcodec audio.

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

 modules/codec/avcodec/audio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 15d6f98..c1968ab 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -297,10 +297,10 @@ aout_buffer_t * DecodeAudio ( decoder_t *p_dec, block_t **pp_block )
     }
 
     i_output = __MAX( p_block->i_buffer, p_sys->i_output_max );
-    if( i_output < p_sys->i_output_max )
+    if( i_output > p_sys->i_output_max )
     {
         /* Grow output buffer if necessary (eg. for PCM data) */
-        p_sys->p_output = realloc(p_sys->p_output, p_block->i_buffer);
+        p_sys->p_output = realloc( p_sys->p_output, i_output );
     }
 
     *pp_block = p_block = block_Realloc( p_block, 0, p_block->i_buffer + FF_INPUT_BUFFER_PADDING_SIZE );




More information about the vlc-devel mailing list