Skip to content

Commit 3c5c5ab

Browse files
committed
Make this work with libavif 0.8.2
Propagate change made in libavif a while ago, but which didn't get into this file originally...
1 parent 3dda708 commit 3c5c5ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gd/libgd/gd_avif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static avifResult readFromCtx(avifIO *io, uint32_t readFlags, uint64_t offset, s
192192

193193
out->data = dataBuf;
194194
out->size = charsRead;
195-
return charsRead == size ? AVIF_RESULT_OK : AVIF_RESULT_TRUNCATED_DATA;
195+
return AVIF_RESULT_OK;
196196
}
197197

198198
// avif.h says this is optional, but it seemed easy to implement.

0 commit comments

Comments
 (0)