Commit 8cb41cb3 authored by Rafaël Carré's avatar Rafaël Carré

avcodec audio encoder: set frame size

parent 2621fdeb
...@@ -887,6 +887,7 @@ errmsg: ...@@ -887,6 +887,7 @@ errmsg:
{ {
goto error; goto error;
} }
p_enc->fmt_out.audio.i_frame_length = p_context->frame_size;
p_enc->fmt_out.audio.i_blockalign = p_context->block_align; p_enc->fmt_out.audio.i_blockalign = p_context->block_align;
p_enc->fmt_out.audio.i_bitspersample = aout_BitsPerSample( p_enc->fmt_out.i_codec ); p_enc->fmt_out.audio.i_bitspersample = aout_BitsPerSample( p_enc->fmt_out.i_codec );
//b_variable tells if we can feed any size frames to encoder //b_variable tells if we can feed any size frames to encoder
......
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