[FFmpeg-devel] [PATCH 3/4] libfaac: add recognized profiles array

Ronald S. Bultje rsbultje
Sat Jan 22 01:29:58 CET 2011


Hi,

On Fri, Jan 21, 2011 at 5:58 PM, Anssi Hannula <anssi.hannula at iki.fi> wrote:
> ---
> ?libavcodec/libfaac.c | ? ?9 +++++++++
> ?1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/libavcodec/libfaac.c b/libavcodec/libfaac.c
> index b220b17..e042537 100644
> --- a/libavcodec/libfaac.c
> +++ b/libavcodec/libfaac.c
> @@ -145,6 +145,14 @@ static av_cold int Faac_encode_close(AVCodecContext *avctx)
> ? ? return 0;
> ?}
>
> +static const AVProfile profiles[] = {
> + ? ?{ FF_PROFILE_AAC_MAIN, "Main" },
> + ? ?{ FF_PROFILE_AAC_LOW, ?"LC" ? },
> + ? ?{ FF_PROFILE_AAC_SSR, ?"SSR" ?},
> + ? ?{ FF_PROFILE_AAC_LTP, ?"LTP" ?},
> + ? ?{ FF_PROFILE_UNKNOWN },
> +};
> +
> ?AVCodec libfaac_encoder = {
> ? ? "libfaac",
> ? ? AVMEDIA_TYPE_AUDIO,
> @@ -155,4 +163,5 @@ AVCodec libfaac_encoder = {
> ? ? Faac_encode_close,
> ? ? .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
> ? ? .long_name = NULL_IF_CONFIG_SMALL("libfaac AAC (Advanced Audio Codec)"),
> + ? ?.profiles = NULL_IF_CONFIG_SMALL(profiles),
> ?};
> --
> 1.7.3

This is OK also.

Ronald



More information about the ffmpeg-devel mailing list