Merge commit '199d9f995da53fe2507821f6d96bbc692574e1a9'
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 6 Nov 2014 17:27:58 +0000 (18:27 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 6 Nov 2014 17:28:49 +0000 (18:28 +0100)
* commit '199d9f995da53fe2507821f6d96bbc692574e1a9':
  mjpegdec: fix undefined shift

Conflicts:
libavcodec/mjpegdec.c

See: b4329605289e25bb071ec1c1182bf25fc83b09aa
Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegdec.c

index cdb75af..e3f6910 100644 (file)
@@ -1295,6 +1295,8 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss,
     }
 
     if (!Al) {
+        // s->coefs_finished is a bitmask for coefficients coded
+        // ss and se are parameters telling start and end coefficients
         s->coefs_finished[c] |= (2ULL << se) - (1ULL << ss);
         last_scan = !~s->coefs_finished[c];
     }