Skip to content

Commit d91f9ae

Browse files
committed
avif: Fix compatibility with libavif 0.8.2
1 parent ec58e2b commit d91f9ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/_avif.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
#include "libImaging/Imaging.h"
44
#include "avif/avif.h"
55

6+
#if AVIF_VERSION < 80300
7+
#define AVIF_CHROMA_UPSAMPLING_AUTOMATIC AVIF_CHROMA_UPSAMPLING_BILINEAR
8+
#define AVIF_CHROMA_UPSAMPLING_BEST_QUALITY AVIF_CHROMA_UPSAMPLING_BILINEAR
9+
#define AVIF_CHROMA_UPSAMPLING_FASTEST AVIF_CHROMA_UPSAMPLING_NEAREST
10+
#endif
11+
612
typedef struct {
713
avifPixelFormat yuv_format;
814
int qmin;

0 commit comments

Comments
 (0)