Kaydet (Commit) 88a3b813 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/jpeg-turbo: Work around -fsanitize=shift

Change-Id: I83bb6c2a208f2a80f227873b285c939ced6dbc27
üst 514baf79
......@@ -29,3 +29,12 @@
}
/* Completed MCU, so update state */
@@ -402,7 +402,7 @@
r = GET_BITS(s);
s = HUFF_EXTEND(r, s);
/* Scale and output coefficient in natural (dezigzagged) order */
- (*block)[jpeg_natural_order[k]] = (JCOEF) (s << Al);
+ (*block)[jpeg_natural_order[k]] = (JCOEF) ((unsigned)s << Al);
} else {
if (r == 15) { /* ZRL */
k += 15; /* skip 15 zeroes in band */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment