libfaac: add recognized profiles array
authorAnssi Hannula <anssi.hannula@iki.fi>
Fri, 21 Jan 2011 21:58:54 +0000 (21:58 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 23 Jan 2011 18:32:07 +0000 (19:32 +0100)
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit b92f76e209b6912fb36ea2e588474c48ca231dea)

libavcodec/libfaac.c

index b220b17..e042537 100644 (file)
@@ -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),
 };