(In reply to comment #21)
> This question is pretty content-free, since I have no idea what version of
> the file you're looking at. How about quoting code instead of expecting me
> to guess?
Taking my cues from your patch, I looked at v4.0.2.
Below is the extract from t2p_process_ojpeg_tables() which I referred to:
(In reply to comment #21)
> This question is pretty content-free, since I have no idea what version of
> the file you're looking at. How about quoting code instead of expecting me
> to guess?
Taking my cues from your patch, I looked at v4.0.2.
Below is the extract from t2p_process_ ojpeg_tables( ) which I referred to:
3159 t2p->t2p_error = T2P_ERR_ERROR; d(input, TIFFTAG_ JPEGPOINTTRANSF ORM, &pt)){ TIFF2PDF_ MODULE, input)) ; d(input, TIFFTAG_ YCBCRSUBSAMPLIN G, &h_samp, &v_samp)){ >pdf_ojpegdata != NULL){ t2p->pdf_ ojpegdata) ; ojpegdata= NULL; >pdf_ojpegdata == NULL){ TIFF2PDF_ MODULE, ojpeg_tables, %s", input)) ;
3160 return(0);
3161 }
3162 if(!TIFFGetFiel
3163 TIFFError(
3164 "Missing JPEGPointTransform field in OJPEG image %s",
3165 TIFFFileName(
3166 t2p->t2p_error = T2P_ERR_ERROR;
3167 return(0);
3168 }
3169 }
3170 if(!TIFFGetFiel
3171 h_samp=1;
3172 v_samp=1;
3173 }
3174 if(t2p-
3175 _TIFFfree(
3176 t2p->pdf_
3177 }
3178 t2p->pdf_ojpegdata = _TIFFmalloc(2048);
3179 if(t2p-
3180 TIFFError(
3181 "Can't allocate %u bytes of memory for t2p_process_
3182 2048,
3183 TIFFFileName(
3184 return(0);
3185 }