Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 140121 | Differences between
and this patch

Collapse All | Expand All

(-)renderer/r_image.c_old (-2 / +2 lines)
Lines 839-845 Link Here
839
		VID_Printf(PRINT_ALL, "Premature end of JPEG data\n");
839
		VID_Printf(PRINT_ALL, "Premature end of JPEG data\n");
840
}
840
}
841
841
842
void jpeg_mem_src(j_decompress_ptr cinfo, byte *mem, int len)
842
void kmquake2_jpeg_mem_src(j_decompress_ptr cinfo, byte *mem, int len)
843
{
843
{
844
    cinfo->src = (struct jpeg_source_mgr *)(*cinfo->mem->alloc_small)((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof(struct jpeg_source_mgr));
844
    cinfo->src = (struct jpeg_source_mgr *)(*cinfo->mem->alloc_small)((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof(struct jpeg_source_mgr));
845
    cinfo->src->init_source = jpg_null;
845
    cinfo->src->init_source = jpg_null;
Lines 889-895 Link Here
889
	jpeg_create_decompress(&cinfo);
889
	jpeg_create_decompress(&cinfo);
890
890
891
	// Feed JPEG memory into the libJpeg Object
891
	// Feed JPEG memory into the libJpeg Object
892
	jpeg_mem_src(&cinfo, rawdata, rawsize);
892
	kmquake2_jpeg_mem_src(&cinfo, rawdata, rawsize);
893
893
894
	// Process JPEG header
894
	// Process JPEG header
895
	jpeg_read_header(&cinfo, true); // bombs out here
895
	jpeg_read_header(&cinfo, true); // bombs out here

Return to bug 140121