Skip to content

Commit e807e07

Browse files
committed
Fixed Bug #69479 GD fails to build with newer libvpx
From upstream libgd/libgd@d41eb72 Fix build with latest libvpx 1.4.0 These new constants exist at least since 1.0.0 Compatibility ones have been droped in 1.4.0
1 parent d9c266f commit e807e07

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ext/gd/libgd/webpimg.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -706,14 +706,14 @@ static WebPResult VPXEncode(const uint8* Y,
706706
codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0);
707707
codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2);
708708

709-
vpx_img_wrap(&img, IMG_FMT_I420,
709+
vpx_img_wrap(&img, VPX_IMG_FMT_I420,
710710
y_width, y_height, 16, (uint8*)(Y));
711-
img.planes[PLANE_Y] = (uint8*)(Y);
712-
img.planes[PLANE_U] = (uint8*)(U);
713-
img.planes[PLANE_V] = (uint8*)(V);
714-
img.stride[PLANE_Y] = y_stride;
715-
img.stride[PLANE_U] = uv_stride;
716-
img.stride[PLANE_V] = uv_stride;
711+
img.planes[VPX_PLANE_Y] = (uint8*)(Y);
712+
img.planes[VPX_PLANE_U] = (uint8*)(U);
713+
img.planes[VPX_PLANE_V] = (uint8*)(V);
714+
img.stride[VPX_PLANE_Y] = y_stride;
715+
img.stride[VPX_PLANE_U] = uv_stride;
716+
img.stride[VPX_PLANE_V] = uv_stride;
717717

718718
res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY);
719719

0 commit comments

Comments
 (0)