@@ -170,22 +170,22 @@ public ImageInfo Identify(BufferedReadStream stream, CancellationToken cancellat
170
170
bool isPng = flag . SequenceEqual ( PngConstants . HeaderBytes ) ;
171
171
172
172
// Decode the frame into a temp image buffer. This is disposed after the frame is copied to the result.
173
- ImageInfo temp = this . GetDecoder ( isPng ) . Identify ( stream , cancellationToken ) ;
173
+ ImageInfo frameInfo = this . GetDecoder ( isPng ) . Identify ( stream , cancellationToken ) ;
174
174
175
175
ImageFrameMetadata frameMetadata = new ( ) ;
176
176
177
177
if ( isPng )
178
178
{
179
179
if ( i == 0 )
180
180
{
181
- pngMetadata = temp . Metadata . GetPngMetadata ( ) ;
181
+ pngMetadata = frameInfo . Metadata . GetPngMetadata ( ) ;
182
182
}
183
183
184
- frameMetadata . SetFormatMetadata ( PngFormat . Instance , temp . FrameMetadataCollection [ 0 ] . GetPngMetadata ( ) ) ;
184
+ frameMetadata . SetFormatMetadata ( PngFormat . Instance , frameInfo . FrameMetadataCollection [ 0 ] . GetPngMetadata ( ) ) ;
185
185
}
186
186
else
187
187
{
188
- BmpMetadata meta = temp . Metadata . GetBmpMetadata ( ) ;
188
+ BmpMetadata meta = frameInfo . Metadata . GetBmpMetadata ( ) ;
189
189
bitsPerPixel = meta . BitsPerPixel ;
190
190
colorTable = meta . ColorTable ;
191
191
@@ -210,7 +210,7 @@ public ImageInfo Identify(BufferedReadStream stream, CancellationToken cancellat
210
210
211
211
// Since Windows Vista, the size of an image is determined from the BITMAPINFOHEADER structure or PNG image data
212
212
// which technically allows storing icons with larger than 256 pixels, but such larger sizes are not recommended by Microsoft.
213
- this . Dimensions = new ( Math . Max ( this . Dimensions . Width , temp . Size . Width ) , Math . Max ( this . Dimensions . Height , temp . Size . Height ) ) ;
213
+ this . Dimensions = new ( Math . Max ( this . Dimensions . Width , frameInfo . Size . Width ) , Math . Max ( this . Dimensions . Height , frameInfo . Size . Height ) ) ;
214
214
}
215
215
216
216
// Copy the format specific metadata to the image.
0 commit comments