libmovtar: added patch for building with gcc4
This commit is contained in:
parent
b2e95b78d2
commit
2520fc4d1f
@ -1,2 +1,3 @@
|
||||
cedf741244f17031bc40505160893af2 jpegint.h
|
||||
f1372fda16838484031b86fbed77a8f0 libmovtar-0.1.3-gcc4.patch
|
||||
3810ba83a90c52676014ab1ea6d8cd9f libmovtar-0.1.3.tar.gz
|
||||
|
@ -7,12 +7,13 @@
|
||||
|
||||
name=libmovtar
|
||||
version=0.1.3
|
||||
release=4
|
||||
release=5
|
||||
source=(http://dl.sourceforge.net/sourceforge/mjpeg/$name-$version.tar.gz \
|
||||
jpegint.h)
|
||||
jpegint.h $name-$version-gcc4.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
patch -p1 -i $SRC/$name-$version-gcc4.patch
|
||||
# jpegint.h should be from the same version of libjpeg-mmx that's installed
|
||||
cp $SRC/jpegint.h .
|
||||
sed -i -e "s,#include <jinclude.h>,," movtar_play.c
|
||||
|
11
libmovtar/libmovtar-0.1.3-gcc4.patch
Normal file
11
libmovtar/libmovtar-0.1.3-gcc4.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- libmovtar-0.1.3/rtjpeg/RTjpeg.c 2005-04-26 13:42:26.000000000 +0000
|
||||
+++ libmovtar-0.1.3.az/rtjpeg/RTjpeg.c 2005-04-26 13:42:43.000000000 +0000
|
||||
@@ -129,7 +129,7 @@
|
||||
register int ci, co=1, tmp;
|
||||
register __s16 ZZvalue;
|
||||
|
||||
- (__u8)strm[0]=(__u8)(data[RTjpeg_ZZ[0]]>254) ? 254:((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]);
|
||||
+ strm[0]=(__u8)(data[RTjpeg_ZZ[0]]>254) ? 254:((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]);
|
||||
|
||||
for(ci=1; ci<=bt8; ci++)
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user