[FFmpeg-devel] [PATCH 1/3] aacenc: use constants to set AAC coder

Paul B Mahol onemda at gmail.com
Thu Sep 12 16:14:30 CEST 2013


On 9/11/13, Timothy Gu <timothygu99 at gmail.com> wrote:
> On Tue, Sep 10, 2013 at 2:59 AM, Stefano Sabatini <stefasab at gmail.com>
> wrote:
>
>> Yes, and probably while at it also:
>>
>> AACCoefficientsEncoder ff_aac_coders[AAC_CODER_NB] = {
>>     [AAC_CODER_FAAC] = {
>>         search_for_quantizers_faac,
>>         encode_window_bands_info,
>>         quantize_and_encode_band,
>>         search_for_ms,
>>     },
>>     [AAC_CODER_ANMR] = {
>>         search_for_quantizers_anmr,
>>         encode_window_bands_info,
>>         quantize_and_encode_band,
>>         search_for_ms,
>>     },
>>     ...
>
> I honestly didn't know that you can do this before you told me this
> (due to my very poor C skills and experience) ...
>
> New patched attached.

Use git send-email.

Use enum.


More information about the ffmpeg-devel mailing list