[FFmpeg-cvslog] avcodec/mqcdec: set raw flag at the begin of ff_mqc_initdec()

Michael Niedermayer git at videolan.org
Mon Jun 15 18:31:24 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 15 17:11:01 2015 +0200| [021351f246b14f926a9efebac791dcc45e16aa66] | committer: 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: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=021351f246b14f926a9efebac791dcc45e16aa66
---

 libavcodec/mqcdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mqcdec.c b/libavcodec/mqcdec.c
index aebc36f..34aa519 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) {



More information about the ffmpeg-cvslog mailing list