Mercurial > libavcodec.hg
diff smacker.c @ 10484:ccad7a2ff75f libavcodec
Set the sample format for Smacker audio in the decoder rather than in the
demuxer.
author | jbr |
---|---|
date | Sun, 01 Nov 2009 15:08:49 +0000 |
parents | d7ed9dcc78e3 |
children | 8a4984c5cacc |
line wrap: on
line diff
--- a/smacker.c Sat Oct 31 02:02:30 2009 +0000 +++ b/smacker.c Sun Nov 01 15:08:49 2009 +0000 @@ -555,6 +555,7 @@ static av_cold int smka_decode_init(AVCodecContext *avctx) { avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO; + avctx->sample_fmt = avctx->bits_per_coded_sample == 8 ? SAMPLE_FMT_U8 : SAMPLE_FMT_S16; return 0; }