]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mqcdec.c
avcodec/mjpegdec: dont try to combine fields for decimated multiscope 2 material
[ffmpeg] / libavcodec / mqcdec.c
index aebc36f1b89e0feef337e8e7f6066349a38cb462..34aa51951ebdcd2f8a4e702cda5a967af48d6dcf 100644 (file)
@@ -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) {