Commit 868b85c2 authored by Laurent Aimar's avatar Laurent Aimar

Fixed typo in avcodec audio.

parent 96c92ae9
...@@ -297,10 +297,10 @@ aout_buffer_t * DecodeAudio ( decoder_t *p_dec, block_t **pp_block ) ...@@ -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 ); 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) */ /* 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 ); *pp_block = p_block = block_Realloc( p_block, 0, p_block->i_buffer + FF_INPUT_BUFFER_PADDING_SIZE );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment