]> git.sesse.net Git - vlc/commitdiff
avcodec audio encoder: set frame size
authorRafaël Carré <funman@videolan.org>
Wed, 19 Feb 2014 12:42:21 +0000 (13:42 +0100)
committerRafaël Carré <funman@videolan.org>
Wed, 19 Feb 2014 12:42:21 +0000 (13:42 +0100)
modules/codec/avcodec/encoder.c

index ac0f8973c60e369491850a069cce8d1d5b57478e..9ba3e14c290b0bcb5a723acaf0b1770175814f50 100644 (file)
@@ -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