Commit fc8ed111 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec_encode_audio2: Increase the audio buffer size.

Fixes Ticket1104
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2b07f572
...@@ -1024,7 +1024,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx, ...@@ -1024,7 +1024,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
implement encode2() */ implement encode2() */
buf_size = 2 * avctx->frame_size * avctx->channels * buf_size = 2 * avctx->frame_size * avctx->channels *
av_get_bytes_per_sample(avctx->sample_fmt); 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))) if ((ret = ff_alloc_packet(avpkt, buf_size)))
......
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