Revision 5d6e4c16 libavcodec/mlpdec.c

View differences:

libavcodec/mlpdec.c
318 318

  
319 319
    m->avctx->bits_per_raw_sample = mh.group1_bits;
320 320
    if (mh.group1_bits > 16)
321
        m->avctx->sample_fmt = SAMPLE_FMT_S32;
321
        m->avctx->sample_fmt = AV_SAMPLE_FMT_S32;
322 322
    else
323
        m->avctx->sample_fmt = SAMPLE_FMT_S16;
323
        m->avctx->sample_fmt = AV_SAMPLE_FMT_S16;
324 324

  
325 325
    m->params_valid = 1;
326 326
    for (substr = 0; substr < MAX_SUBSTREAMS; substr++)
......
931 931
static int output_data(MLPDecodeContext *m, unsigned int substr,
932 932
                       uint8_t *data, unsigned int *data_size)
933 933
{
934
    if (m->avctx->sample_fmt == SAMPLE_FMT_S32)
934
    if (m->avctx->sample_fmt == AV_SAMPLE_FMT_S32)
935 935
        return output_data_internal(m, substr, data, data_size, 1);
936 936
    else
937 937
        return output_data_internal(m, substr, data, data_size, 0);

Also available in: Unified diff