Commit 2089fe22 authored by michael's avatar michael

Reduce initial fifo size, so as not to senselessly waste memory.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12186 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4fb08aba
......@@ -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;
......
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