openimageio: Update to 1.4.15
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
_realname=openimageio
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
pkgver=1.4.13
|
||||
pkgrel=2
|
||||
pkgver=1.4.15
|
||||
pkgrel=1
|
||||
pkgdesc="A library for reading and writing images, including classes, utilities, and applications (mingw-w64)"
|
||||
arch=('any')
|
||||
url="http://www.openimageio.org/"
|
||||
@@ -35,18 +35,15 @@ optdepends=(#"${MINGW_PACKAGE_PREFIX}-qt4: iv image viewer"
|
||||
options=('strip' 'buildflags')
|
||||
source=(https://github.com/OpenImageIO/oiio/archive/Release-$pkgver.tar.gz
|
||||
fix-mingw-w64.patch
|
||||
workaround-ansidecl-h-PTR-define-conflict.patch
|
||||
giflib.patch)
|
||||
md5sums=('7df68cad0f79f5eea33209f63b2e8b3d'
|
||||
'cbd33e44aa073bb58b0371d311e0fc36'
|
||||
'1bf4c840ee73d37ebdfc98d3ea527ed4'
|
||||
'f5cef862b0700c80cb574bfec9625b85')
|
||||
workaround-ansidecl-h-PTR-define-conflict.patch)
|
||||
md5sums=('8911cf6103e9fe3638912908bb4faa19'
|
||||
'babd1767de324a53cb50d2a74a1ac2ae'
|
||||
'1bf4c840ee73d37ebdfc98d3ea527ed4')
|
||||
|
||||
prepare() {
|
||||
cd ${srcdir}/oiio-Release-${pkgver}
|
||||
patch -p1 -i ${srcdir}/fix-mingw-w64.patch
|
||||
patch -p1 -i ${srcdir}/workaround-ansidecl-h-PTR-define-conflict.patch
|
||||
patch -p1 -i ${srcdir}/giflib.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
@@ -102,6 +102,18 @@
|
||||
|
||||
#include "imagebuf.h"
|
||||
#include "imagebufalgo.h"
|
||||
@@ -1313,9 +1313,9 @@
|
||||
if (error)
|
||||
continue; // ignore errors
|
||||
// now, draw to our target surface
|
||||
- for (int j = 0; j < slot->bitmap.rows; ++j) {
|
||||
+ for (unsigned int j = 0; j < slot->bitmap.rows; ++j) {
|
||||
int ry = y + j - slot->bitmap_top;
|
||||
- for (int i = 0; i < slot->bitmap.width; ++i) {
|
||||
+ for (unsigned int i = 0; i < slot->bitmap.width; ++i) {
|
||||
int rx = x + i + slot->bitmap_left;
|
||||
float b = slot->bitmap.buffer[slot->bitmap.pitch*j+i] / 255.0f;
|
||||
R.getpixel (rx, ry, pixelcolor);
|
||||
--- a/src/libOpenImageIO/imageinput.cpp
|
||||
+++ b/src/libOpenImageIO/imageinput.cpp
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- oiio-Release-1.4.8/src/gif.imageio/gifinput.cpp.orig 2014-05-23 20:21:53.000000000 +0400
|
||||
+++ oiio-Release-1.4.8/src/gif.imageio/gifinput.cpp 2014-05-29 09:37:42.109200000 +0400
|
||||
@@ -437,7 +437,7 @@
|
||||
GIFInput::close (void)
|
||||
{
|
||||
if (m_gif_file) {
|
||||
- if (DGifCloseFile (m_gif_file) == GIF_ERROR) {
|
||||
+ if (DGifCloseFile (m_gif_file, NULL) == GIF_ERROR) {
|
||||
error ("Error trying to close the file.");
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user