diff options
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r-- | libavcodec/ra288.c | 8 |
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, |