[FFmpeg-soc] [soc]: r2789 - aac/aac.c
superdump
subversion at mplayerhq.hu
Tue Jul 15 15:32:14 CEST 2008
Author: superdump
Date: Tue Jul 15 15:32:13 2008
New Revision: 2789
Log:
Only reallocate if we now have more channels than before
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Tue Jul 15 15:32:13 2008
@@ -567,7 +567,7 @@ static int output_configure(AACContext *
// allocate appropriately aligned buffer for interleaved output
if(!ac->interleaved_output)
ac->interleaved_output = av_malloc(channels * 1024 * sizeof(float));
- else if(channels != avctx->channels) {
+ else if(channels > avctx->channels) {
av_free(ac->interleaved_output);
ac->interleaved_output = av_malloc(channels * 1024 * sizeof(float));
}
More information about the FFmpeg-soc
mailing list