[vlc-commits] avcodec audio encoder: set frame size
Rafaël Carré
git at videolan.org
Wed Feb 19 13:43:15 CET 2014
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Feb 19 13:42:21 2014 +0100| [8cb41cb3b7525cc8e44bc272da530ed1adcf4f36] | committer: Rafaël Carré
avcodec audio encoder: set frame size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8cb41cb3b7525cc8e44bc272da530ed1adcf4f36
---
modules/codec/avcodec/encoder.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index ac0f897..9ba3e14 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -887,6 +887,7 @@ errmsg:
{
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_bitspersample = aout_BitsPerSample( p_enc->fmt_out.i_codec );
//b_variable tells if we can feed any size frames to encoder
More information about the vlc-commits
mailing list