Revision 5d6e4c16 libavcodec/smacker.c

View differences:

libavcodec/smacker.c
555 555
static av_cold int smka_decode_init(AVCodecContext *avctx)
556 556
{
557 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
    avctx->sample_fmt = avctx->bits_per_coded_sample == 8 ? AV_SAMPLE_FMT_U8 : AV_SAMPLE_FMT_S16;
559 559
    return 0;
560 560
}
561 561

  

Also available in: Unified diff