ra144enc: add sample_fmts list to ff_ra_144_encoder
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 8 Nov 2011 22:47:09 +0000 (17:47 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 9 Nov 2011 21:53:23 +0000 (16:53 -0500)
This enables the user (i.e. avconv) to automatically convert to the supported
sample format if needed.

libavcodec/ra144enc.c

index c475cbc..1d260b7 100644 (file)
@@ -516,5 +516,7 @@ AVCodec ff_ra_144_encoder = {
     .init           = ra144_encode_init,
     .encode         = ra144_encode_frame,
     .close          = ra144_encode_close,
+    .sample_fmts    = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
+                                                     AV_SAMPLE_FMT_NONE },
     .long_name      = NULL_IF_CONFIG_SMALL("RealAudio 1.0 (14.4K) encoder"),
 };