changeset 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 afad312b9989
children 87b01c645235
files smacker.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;
 }