aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-24 01:56:27 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-24 01:56:27 +0000
commit10e7fc7ce4c5e1fc3aa37dccd49087af1ad7a227 (patch)
treefd6995169acff437c5366c911310719812cba83f
parenta6ebca9e09d21f0b13b2b2b027c30a52f0827363 (diff)
downloadffmpeg-10e7fc7ce4c5e1fc3aa37dccd49087af1ad7a227.tar.gz
Reduce initial fifo size, so as not to senselessly waste memory.
Originally committed as revision 12186 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index baa10df2ba..3cce5cedd7 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1643,7 +1643,7 @@ static int av_encode(AVFormatContext **output_files,
} else {
switch(codec->codec_type) {
case CODEC_TYPE_AUDIO:
- if (av_fifo_init(&ost->fifo, 2 * MAX_AUDIO_PACKET_SIZE))
+ if (av_fifo_init(&ost->fifo, 1024))
goto fail;
ost->audio_resample = codec->sample_rate != icodec->sample_rate || audio_sync_method > 1;
icodec->request_channels = codec->channels;