Revision 76c4a644 libavcodec/mpc8.c

View differences:

libavcodec/mpc8.c
129 129
    c->MSS = get_bits1(&gb);
130 130
    c->frames = 1 << (get_bits(&gb, 3) * 2);
131 131

  
132
    avctx->sample_fmt = SAMPLE_FMT_S16;
133
    avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
134

  
132 135
    if(vlc_initialized) return 0;
133 136
    av_log(avctx, AV_LOG_DEBUG, "Initing VLC\n");
134 137

  
......
219 222
                 &mpc8_q8_codes[i], 1, 1, INIT_VLC_USE_NEW_STATIC);
220 223
    }
221 224
    vlc_initialized = 1;
222
    avctx->sample_fmt = SAMPLE_FMT_S16;
223
    avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
224 225
    return 0;
225 226
}
226 227

  

Also available in: Unified diff