aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-15 17:11:01 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-15 17:11:01 +0200
commit021351f246b14f926a9efebac791dcc45e16aa66 (patch)
tree132c35fb31bce8f4636675e3a9c0da0f55e1eed0
parent4ec14ce121df4c33880251a96c2f3e7409eb14fe (diff)
downloadffmpeg-021351f246b14f926a9efebac791dcc45e16aa66.tar.gz
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: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mqcdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mqcdec.c b/libavcodec/mqcdec.c
index aebc36f1b8..34aa51951e 100644
--- a/libavcodec/mqcdec.c
+++ b/libavcodec/mqcdec.c
@@ -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) {