mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
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>
This commit is contained in:
parent
4ec14ce121
commit
021351f246
@ -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)
|
void ff_mqc_initdec(MqcState *mqc, uint8_t *bp, int raw, int reset)
|
||||||
{
|
{
|
||||||
|
mqc->raw = raw;
|
||||||
if (reset)
|
if (reset)
|
||||||
ff_mqc_init_contexts(mqc);
|
ff_mqc_init_contexts(mqc);
|
||||||
mqc->bp = bp;
|
mqc->bp = bp;
|
||||||
@ -77,7 +78,6 @@ void ff_mqc_initdec(MqcState *mqc, uint8_t *bp, int raw, int reset)
|
|||||||
bytein(mqc);
|
bytein(mqc);
|
||||||
mqc->c = mqc->c << 7;
|
mqc->c = mqc->c << 7;
|
||||||
mqc->a = 0x8000;
|
mqc->a = 0x8000;
|
||||||
mqc->raw = raw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mqc_decode_bypass(MqcState *mqc) {
|
static int mqc_decode_bypass(MqcState *mqc) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user