fix issue #315 jddctmgr.c contains mixed declaration, which MSVC can't accept.

This commit is contained in:
Gary Zhang
2018-11-30 09:39:09 +08:00
committed by Kornel
parent fbef50bc8b
commit 254909fab5

View File

@@ -108,6 +108,7 @@ start_pass(j_decompress_ptr cinfo)
int method = 0;
inverse_DCT_method_ptr method_ptr = NULL;
JQUANT_TBL *qtbl;
my_master_ptr master;
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
ci++, compptr++) {
@@ -233,7 +234,7 @@ start_pass(j_decompress_ptr cinfo)
}
// Allow custom idct function to be set dynamically
my_master_ptr master = (my_master_ptr) cinfo->master;
master = (my_master_ptr) cinfo->master;
if (master->custom_idct_selector != NULL) {
master->custom_idct_selector(cinfo, compptr, &method_ptr, &method);