9 Apr
2008
9 Apr
'08
9:41 a.m.
Author: andoma Date: Wed Apr 9 09:41:25 2008 New Revision: 2108 Log: Make sure there is enough space in PCM output buffer before writing there. Modified: aac/aac.c Modified: aac/aac.c ============================================================================== --- aac/aac.c (original) +++ aac/aac.c Wed Apr 9 09:41:25 2008 @@ -2158,7 +2158,11 @@ static int output_samples(AVCodecContext } } - *data_size = 1024 * avccontext->channels * sizeof(uint16_t); + i = 1024 * avccontext->channels * sizeof(uint16_t); + if(*data_size < i) + return -1; + *data_size = i; + ac->dsp.float_to_int16(data, ac->interleaved_output, 1024 * avccontext->channels); return 0; }
6613
Age (days ago)
6613
Last active (days ago)
0 comments
1 participants
participants (1)
-
andoma