comparison 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
comparison
equal deleted inserted replaced
10483:afad312b9989 10484:ccad7a2ff75f
553 553
554 554
555 static av_cold int smka_decode_init(AVCodecContext *avctx) 555 static av_cold int smka_decode_init(AVCodecContext *avctx)
556 { 556 {
557 avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO; 557 avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
558 avctx->sample_fmt = avctx->bits_per_coded_sample == 8 ? SAMPLE_FMT_U8 : SAMPLE_FMT_S16;
558 return 0; 559 return 0;
559 } 560 }
560 561
561 /** 562 /**
562 * Decode Smacker audio data 563 * Decode Smacker audio data