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));
}
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc