aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2008-07-31 10:47:31 +0000
committerPeter Ross <pross@xvid.org>2008-07-31 10:47:31 +0000
commitfd76c37fd9f564b4e979fbe20ecfcfad13f8b4f4 (patch)
treee391aec76fcfa666a50c7ccce172ff7a8d140da9 /libavcodec/ra288.c
parentc8fd5da42fffc92268a0e23335af36580f2a2a4b (diff)
downloadffmpeg-fd76c37fd9f564b4e979fbe20ecfcfad13f8b4f4.tar.gz
Modify all codecs to report their supported input and output sample format(s).
Originally committed as revision 14482 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index 6930cf5368..f3e8af4fd2 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -42,6 +42,12 @@ typedef struct {
float gain_block[10]; ///< Gain data of four blocks (spec: GSTATE)
} RA288Context;
+static av_cold int ra288_decode_init(AVCodecContext *avctx)
+{
+ avctx->sample_fmt = SAMPLE_FMT_S16;
+ return 0;
+}
+
static inline float scalar_product_float(const float * v1, const float * v2,
int size)
{
@@ -258,7 +264,7 @@ AVCodec ra_288_decoder =
CODEC_TYPE_AUDIO,
CODEC_ID_RA_288,
sizeof(RA288Context),
- NULL,
+ ra288_decode_init,
NULL,
NULL,
ra288_decode_frame,