Commit 021351f2 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mqcdec: set raw flag at the begin of ff_mqc_initdec()

This way it is available to any functions called from ff_mqc_initdec()
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4ec14ce1
......@@ -70,6 +70,7 @@ static int exchange(MqcState *mqc, uint8_t *cxstate, int lps)
void ff_mqc_initdec(MqcState *mqc, uint8_t *bp, int raw, int reset)
{
mqc->raw = raw;
if (reset)
ff_mqc_init_contexts(mqc);
mqc->bp = bp;
......@@ -77,7 +78,6 @@ void ff_mqc_initdec(MqcState *mqc, uint8_t *bp, int raw, int reset)
bytein(mqc);
mqc->c = mqc->c << 7;
mqc->a = 0x8000;
mqc->raw = raw;
}
static int mqc_decode_bypass(MqcState *mqc) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment