alacenc : Report supported input sample formats.
authorJai Menon <jmenon86@gmail.com>
Sat, 10 Apr 2010 17:32:41 +0000 (17:32 +0000)
committerJai Menon <jmenon86@gmail.com>
Sat, 10 Apr 2010 17:32:41 +0000 (17:32 +0000)
Originally committed as revision 22829 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/alacenc.c

index 90c2788..b7b82b2 100644 (file)
@@ -528,5 +528,6 @@ AVCodec alac_encoder = {
     alac_encode_frame,
     alac_encode_close,
     .capabilities = CODEC_CAP_SMALL_LAST_FRAME,
+    .sample_fmts = (const enum SampleFormat[]){ SAMPLE_FMT_S16, SAMPLE_FMT_NONE},
     .long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"),
 };