add changelog note

This commit is contained in:
John Cupitt 2022-09-22 14:09:55 +01:00
parent 33d44e86fb
commit a86f33769b
2 changed files with 10 additions and 7 deletions

View File

@ -5,6 +5,7 @@
- revise caching of seq mode loaders [jcupitt]
- reduce latency on dzsave kill [kleisauke]
- improve text too large check [kleisauke]
- fix subifd writing for small images [ruven]
24/7/22 started 8.13.1
- fix im7 feature detection in meson

View File

@ -2114,7 +2114,6 @@ wtiff_page_start( Wtiff *wtiff )
*/
if( wtiff->subifd ) {
int n_layers;
toff_t *subifd_offsets;
Layer *p;
#ifdef DEBUG
@ -2128,12 +2127,15 @@ wtiff_page_start( Wtiff *wtiff )
for( n_layers = 0, p = wtiff->layer->below; p; p = p->below )
n_layers += 1;
if( n_layers > 0 ){
subifd_offsets = VIPS_ARRAY( NULL, n_layers, toff_t );
memset( subifd_offsets, 0, n_layers * sizeof( toff_t ) );
TIFFSetField( wtiff->layer->tif, TIFFTAG_SUBIFD,
n_layers, subifd_offsets );
g_free( subifd_offsets );
if( n_layers > 0 ) {
toff_t *subifd_offsets;
subifd_offsets = VIPS_ARRAY( NULL, n_layers, toff_t );
memset( subifd_offsets,
0, n_layers * sizeof( toff_t ) );
TIFFSetField( wtiff->layer->tif, TIFFTAG_SUBIFD,
n_layers, subifd_offsets );
g_free( subifd_offsets );
}
}