diff options
author | Remi Collet <remi@php.net> | 2015-05-24 09:39:20 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2015-05-24 09:39:20 +0200 |
commit | 565de1ae64ef0dd9977ade742651eac73064d0b0 (patch) | |
tree | df5cad445349da1488116e9b0a2cb85f0afa9be1 | |
parent | 4e002b4412545692a0a8c0121645cdec8ad992bd (diff) | |
parent | 4cab20bbb4e6ef7d9d26bbe992dab2509d106ac3 (diff) | |
download | php-git-565de1ae64ef0dd9977ade742651eac73064d0b0.tar.gz |
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
NEWS
Fixed Bug #69479 GD fails to build with newer libvpx
-rw-r--r-- | ext/gd/libgd/webpimg.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/gd/libgd/webpimg.c b/ext/gd/libgd/webpimg.c index 95a8081e05..4962c22e6c 100644 --- a/ext/gd/libgd/webpimg.c +++ b/ext/gd/libgd/webpimg.c @@ -706,14 +706,14 @@ static WebPResult VPXEncode(const uint8* Y, codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0); codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2); - vpx_img_wrap(&img, IMG_FMT_I420, + vpx_img_wrap(&img, VPX_IMG_FMT_I420, y_width, y_height, 16, (uint8*)(Y)); - img.planes[PLANE_Y] = (uint8*)(Y); - img.planes[PLANE_U] = (uint8*)(U); - img.planes[PLANE_V] = (uint8*)(V); - img.stride[PLANE_Y] = y_stride; - img.stride[PLANE_U] = uv_stride; - img.stride[PLANE_V] = uv_stride; + img.planes[VPX_PLANE_Y] = (uint8*)(Y); + img.planes[VPX_PLANE_U] = (uint8*)(U); + img.planes[VPX_PLANE_V] = (uint8*)(V); + img.stride[VPX_PLANE_Y] = y_stride; + img.stride[VPX_PLANE_U] = uv_stride; + img.stride[VPX_PLANE_V] = uv_stride; res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY); |