[FFmpeg-cvslog] avcodec_encode_audio2: Increase the audio buffer size.

Michael Niedermayer git at videolan.org
Mon Mar 19 23:02:54 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 19 22:20:04 2012 +0100| [fc8ed1117e1cfa5efff6a1a3263b52ec3e92c98c] | committer: Michael Niedermayer

avcodec_encode_audio2: Increase the audio buffer size.

Fixes Ticket1104

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc8ed1117e1cfa5efff6a1a3263b52ec3e92c98c
---

 libavcodec/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 23ab832..6b65542 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1024,7 +1024,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
                    implement encode2() */
                 buf_size = 2 * avctx->frame_size * avctx->channels *
                            av_get_bytes_per_sample(avctx->sample_fmt);
-                buf_size += FF_MIN_BUFFER_SIZE;
+                buf_size += 2*FF_MIN_BUFFER_SIZE;
             }
         }
         if ((ret = ff_alloc_packet(avpkt, buf_size)))



More information about the ffmpeg-cvslog mailing list