[SCM] libav/experimental: Reduce initial fifo size, so as not to senselessly waste memory.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:15:26 UTC 2013
The following commit has been merged in the experimental branch:
commit 10e7fc7ce4c5e1fc3aa37dccd49087af1ad7a227
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Sun Feb 24 01:56:27 2008 +0000
Reduce initial fifo size, so as not to senselessly waste memory.
Originally committed as revision 12186 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/ffmpeg.c b/ffmpeg.c
index baa10df..3cce5ce 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list