mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 13:04:50 +00:00
Reduce initial fifo size, so as not to senselessly waste memory.
Originally committed as revision 12186 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a6ebca9e09
commit
10e7fc7ce4
2
ffmpeg.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user