[FFmpeg-cvslog] r12186 - trunk/ffmpeg.c
michael
subversion
Sun Feb 24 02:56:28 CET 2008
Author: michael
Date: Sun Feb 24 02:56:27 2008
New Revision: 12186
Log:
Reduce initial fifo size, so as not to senselessly waste memory.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Sun Feb 24 02:56:27 2008
@@ -1643,7 +1643,7 @@ static int av_encode(AVFormatContext **o
} 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;
More information about the ffmpeg-cvslog
mailing list