]> git.sesse.net Git - vlc/commitdiff
Fixed typo in avcodec audio.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 3 May 2009 17:54:56 +0000 (19:54 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 3 May 2009 17:55:45 +0000 (19:55 +0200)
modules/codec/avcodec/audio.c

index 15d6f98e3b599d46af1248fbd597e04cf15f1d14..c1968ab84c8a3c80d5982a24cca4e03ae7b66328 100644 (file)
@@ -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 );