Revision b5ec6383 libavcodec/dca.c

View differences:

libavcodec/dca.c
1838 1838
        s->samples_chanptr[i] = s->samples + i * 256;
1839 1839
    avctx->sample_fmt = AV_SAMPLE_FMT_S16;
1840 1840

  
1841
        s->scale_bias = 1.0;
1842

  
1843
        /* allow downmixing to stereo */
1844
        if (avctx->channels > 0 && avctx->request_channels < avctx->channels &&
1845
                avctx->request_channels == 2) {
1846
            avctx->channels = avctx->request_channels;
1847
        }
1841
    s->scale_bias = 1.0;
1848 1842

  
1843
    /* allow downmixing to stereo */
1844
    if (avctx->channels > 0 && avctx->request_channels < avctx->channels &&
1845
        avctx->request_channels == 2) {
1846
        avctx->channels = avctx->request_channels;
1847
    }
1849 1848

  
1850 1849
    return 0;
1851 1850
}

Also available in: Unified diff