View | Details | Raw Unified
Collapse All | Expand All

(-)a/libavcodec/dtsdec.c (-1 / +9 lines)
 Lines 216-222   dts_decode_frame(AVCodecContext * avctx, void *data, int *data_size, Link Here 
216
    level = CONVERT_LEVEL;
216
    level = CONVERT_LEVEL;
217
    bias = CONVERT_BIAS;
217
    bias = CONVERT_BIAS;
218
218
219
    flags = s->flags | DTS_ADJUST_LEVEL;
219
    if(avctx->channels == 1) {
220
        flags = DTS_MONO;
221
    } else if(avctx->channels == 2) {
222
        flags = DTS_STEREO;
223
    } else {
224
        flags = s->flags;
225
    }
226
227
    flags |= DTS_ADJUST_LEVEL;
220
    if(dts_frame(s->state, s->buf, &flags, &level, bias)) {
228
    if(dts_frame(s->state, s->buf, &flags, &level, bias)) {
221
        av_log(avctx, AV_LOG_ERROR, "dts_frame() failed\n");
229
        av_log(avctx, AV_LOG_ERROR, "dts_frame() failed\n");
222
        goto end;
230
        goto end;