8042806: Splashscreen uses libjpeg-internal macros

Reviewed-by: anthony, prr
This commit is contained in:
Omair Majid 2014-05-08 19:27:24 -04:00
parent 4c217914c2
commit a9f93ddc32

View File

@ -25,7 +25,6 @@
#include "splashscreen_impl.h" #include "splashscreen_impl.h"
#include "jinclude.h"
#include "jpeglib.h" #include "jpeglib.h"
#include "jerror.h" #include "jerror.h"
@ -107,11 +106,11 @@ set_stream_src(j_decompress_ptr cinfo, SplashStream * stream)
if (cinfo->src == NULL) { /* first time for this JPEG object? */ if (cinfo->src == NULL) { /* first time for this JPEG object? */
cinfo->src = (struct jpeg_source_mgr *) cinfo->src = (struct jpeg_source_mgr *)
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo,
JPOOL_PERMANENT, SIZEOF(stream_source_mgr)); JPOOL_PERMANENT, sizeof(stream_source_mgr));
src = (stream_src_ptr) cinfo->src; src = (stream_src_ptr) cinfo->src;
src->buffer = (JOCTET *) src->buffer = (JOCTET *)
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo,
JPOOL_PERMANENT, INPUT_BUF_SIZE * SIZEOF(JOCTET)); JPOOL_PERMANENT, INPUT_BUF_SIZE * sizeof(JOCTET));
} }
src = (stream_src_ptr) cinfo->src; src = (stream_src_ptr) cinfo->src;