Return static array when fetching default YCbCrCoefficients (another problem,
reported a the http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
This commit is contained in:
parent
cbcbc019f8
commit
c3bea35fd9
@ -1,4 +1,4 @@
|
||||
/* $Id: tif_aux.c,v 1.17 2005-12-24 15:36:16 dron Exp $ */
|
||||
/* $Id: tif_aux.c,v 1.18 2006-02-06 16:11:46 dron Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991-1997 Sam Leffler
|
||||
@ -181,7 +181,7 @@ TIFFVGetFieldDefaulted(TIFF* tif, ttag_t tag, va_list ap)
|
||||
case TIFFTAG_YCBCRCOEFFICIENTS:
|
||||
{
|
||||
/* defaults are from CCIR Recommendation 601-1 */
|
||||
float ycbcrcoeffs[] = { 0.299f, 0.587f, 0.114f };
|
||||
static float ycbcrcoeffs[] = { 0.299f, 0.587f, 0.114f };
|
||||
*va_arg(ap, float **) = ycbcrcoeffs;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user