On Sun, Jun 26, 2011 at 6:03 PM, Nathan Caldwell <[email protected]> wrote:
> On Mon, Jun 20, 2011 at 9:57 AM, Alex Converse <[email protected]> 
> wrote:
>> On Sun, Jun 19, 2011 at 9:29 PM, Nathan Caldwell <[email protected]> wrote:
>>> ---
>>>  libavcodec/aacenc.c |   16 ++++++++--------
>>>  libavcodec/aacenc.h |    1 +
>>>  2 files changed, 9 insertions(+), 8 deletions(-)
>>>
>>> diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
>>> index e8942a1..8c7ed87 100644
>>> --- a/libavcodec/aacenc.c
>>> +++ b/libavcodec/aacenc.c
>>> @@ -199,8 +199,9 @@ static av_cold int aac_encode_init(AVCodecContext 
>>> *avctx)
>>>     ff_init_ff_sine_windows(10);
>>>     ff_init_ff_sine_windows(7);
>>>
>>> +    s->chan_map           = aac_chan_configs[avctx->channels-1];
>>
>> We should fail if channels is 0.
>>
>>>     s->samples            = av_malloc(2 * 1024 * avctx->channels * 
>>> sizeof(s->samples[0]));
>>> -    s->cpe                = av_mallocz(sizeof(ChannelElement) * 
>>> aac_chan_configs[avctx->channels-1][0]);
>>> +    s->cpe                = av_mallocz(sizeof(ChannelElement) * 
>>> s->chan_map[0]);
>>
>> But since this problem already exists, ok
>
> I just noticed that Alex sent his reply directly to me instead of the ML.
>
> So, um, ping?
>

Yes, I OKayed this.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to