Commit eb91162e authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: use correct buffer size in fill_audio_frame

parent 4f11edd7
...@@ -1188,7 +1188,7 @@ static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_aout_buf ) ...@@ -1188,7 +1188,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, 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_interleave_buf : p_sys->p_buffer, p_sys->p_context->sample_fmt, p_sys->b_planar ? p_sys->p_interleave_buf : p_sys->p_buffer,
leftover + buffer_delay, p_sys->i_buffer_out,
align) < 0 ) align) < 0 )
{ {
msg_Err( p_enc, "filling error on fillup" ); msg_Err( p_enc, "filling error on fillup" );
......
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