Anton Firszov
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
tests/ImageSharp.Tests/Image/ImageTests.Decode_Cancellation.cs
|
|
|
@ -42,7 +42,7 @@ public partial class ImageTests |
|
|
|
|
|
|
|
// Do not test "direct" decoder cancellation for Identify for percentages other than 0% to avoid fine-tuning the percentages.
|
|
|
|
// Cancellation should happen before we read enough data to consider the stream "identified". This can be very early for some formats/files.
|
|
|
|
if (!identify || p > 0) |
|
|
|
if (!identify || p == 0) |
|
|
|
{ |
|
|
|
data.Add(true, file, p); |
|
|
|
} |
|
|
|
|