avif saver: fix test on the returned type of fwrite()

Test Plan: save as avif file

Reviewers: raster

Reviewed By: raster

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12310
This commit is contained in:
Vincent Torri 2021-12-16 20:40:27 +00:00 committed by Carsten Haitzler (Rasterman)
parent 9fd52205c9
commit 4f15af95e6
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ save_image_avif(RGBA_Image *im, const char *file, int quality)
goto destroy_encoder;
size = fwrite(output.data, output.size, 1, f);
if (size != output.size)
if (size != 1)
goto destroy_encoder;
ret = 1;