e4e0eb0dff
Change-Id: I0607073c73d3b291a4d5fbfb04e9516b9bbda748 Reviewed-on: https://gerrit.libreoffice.org/22244 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
19 lines
384 B
Diff
19 lines
384 B
Diff
--- jcphuff.c
|
|
+++ jcphuff.c
|
|
@@ -14,6 +14,7 @@
|
|
* suspension.
|
|
*/
|
|
|
|
+#include <stdint.h>
|
|
#define JPEG_INTERNALS
|
|
#include "jinclude.h"
|
|
#include "jpeglib.h"
|
|
@@ -255,7 +256,7 @@
|
|
if (c == 0xFF) { /* need to stuff a zero byte? */
|
|
emit_byte(entropy, 0);
|
|
}
|
|
- put_buffer <<= 8;
|
|
+ put_buffer = (uint_least32_t) put_buffer << 8;
|
|
put_bits -= 8;
|
|
}
|
|
|