summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-25 23:04:09 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-25 23:04:09 +0000
commitfa3b98182d711f7735da6e820f90fbcf96cae4d7 (patch)
tree7626aa54c7b0af1b68ada2dfbaabd46c96ec2f1c /ffmpeg.c
parent0871ae1a930122f7124358a0ce3caf81876913a9 (diff)
Ensure that one can store X bytes in a fifo of size X.
Fixed issue417. Originally committed as revision 13405 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 544927956f..ec9117ae5e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -587,7 +587,7 @@ static void do_audio_out(AVFormatContext *s,
/* now encode as many frames as possible */
if (enc->frame_size > 1) {
/* output resampled raw samples */
- av_fifo_realloc(&ost->fifo, av_fifo_size(&ost->fifo) + size_out + 1);
+ av_fifo_realloc(&ost->fifo, av_fifo_size(&ost->fifo) + size_out);
av_fifo_write(&ost->fifo, buftmp, size_out);
frame_bytes = enc->frame_size * 2 * enc->channels;