# HG changeset patch # User jbr # Date 1257088129 0 # Node ID ccad7a2ff75f54423ef734c250d64ca947eaac6a # Parent afad312b9989ea04466b076f74617e3a272d394c Set the sample format for Smacker audio in the decoder rather than in the demuxer. diff -r afad312b9989 -r ccad7a2ff75f smacker.c --- 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; }