From fd76c37fd9f564b4e979fbe20ecfcfad13f8b4f4 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Thu, 31 Jul 2008 10:47:31 +0000 Subject: 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 --- libavcodec/adxdec.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libavcodec/adxdec.c') diff --git a/libavcodec/adxdec.c b/libavcodec/adxdec.c index 91331c04b1..8765a456dd 100644 --- a/libavcodec/adxdec.c +++ b/libavcodec/adxdec.c @@ -30,6 +30,12 @@ * adx2wav & wav2adx http://www.geocities.co.jp/Playtown/2004/ */ +static av_cold void adx_decode_init(AVCodecContext *avctx) +{ + avctx->sample_fmt = SAMPLE_FMT_S16; + return 0; +} + /* 18 bytes <-> 32 samples */ static void adx_decode(short *out,const unsigned char *in,PREV *prev) @@ -161,7 +167,7 @@ AVCodec adpcm_adx_decoder = { CODEC_TYPE_AUDIO, CODEC_ID_ADPCM_ADX, sizeof(ADXContext), - NULL, + adx_decode_init, NULL, NULL, adx_decode_frame, -- cgit v1.2.3