Revision 76c4a644 libavcodec/mpc7.c

View differences:

libavcodec/mpc7.c
85 85
            c->IS, c->MSS, c->gapless, c->lastframelen, c->maxbands);
86 86
    c->frames_to_skip = 0;
87 87

  
88
    avctx->sample_fmt = SAMPLE_FMT_S16;
89
    avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
90

  
88 91
    if(vlc_initialized) return 0;
89 92
    av_log(avctx, AV_LOG_DEBUG, "Initing VLC\n");
90 93
    scfi_vlc.table = scfi_table;
......
124 127
        }
125 128
    }
126 129
    vlc_initialized = 1;
127
    avctx->sample_fmt = SAMPLE_FMT_S16;
128
    avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
129 130
    return 0;
130 131
}
131 132

  

Also available in: Unified diff