Commit 541705d1 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: give right buffer size not the smallest one

parent aa0f2272
......@@ -1299,7 +1299,7 @@ static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_aout_buf )
if( avcodec_fill_audio_frame( p_sys->frame, p_sys->p_context->channels,
p_sys->p_context->sample_fmt,
p_sys->b_planar ? p_sys->p_buffer : p_aout_buf->p_buffer,
__MIN(p_sys->i_buffer_out, p_aout_buf->i_buffer),
p_sys->b_planar ? p_sys->i_buffer_out : p_aout_buf->i_buffer,
align) < 0 )
{
msg_Err( p_enc, "filling error on encode" );
......
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