forked from ports/contrib
mjpegtools: fix for glibc 2.10
This commit is contained in:
parent
524fed8acd
commit
f22cd2adf1
@ -1 +1,2 @@
|
||||
35480a6eb4ca5f90660890022dd97ae2 mjpegtools-1.9.0-glibc-2.10.patch
|
||||
309a6fcf0900a010d6a9c1e91afc2f5c mjpegtools-1.9.0.tar.gz
|
||||
|
@ -6,11 +6,13 @@
|
||||
|
||||
name=mjpegtools
|
||||
version=1.9.0
|
||||
release=1
|
||||
source=(http://downloads.sourceforge.net/sourceforge/mjpeg/$name-$version.tar.gz)
|
||||
release=2
|
||||
source=(http://downloads.sourceforge.net/sourceforge/mjpeg/$name-$version.tar.gz
|
||||
mjpegtools-1.9.0-glibc-2.10.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
patch -p 1 -i $SRC/mjpegtools-1.9.0-glibc-2.10.patch
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
|
12
mjpegtools/mjpegtools-1.9.0-glibc-2.10.patch
Normal file
12
mjpegtools/mjpegtools-1.9.0-glibc-2.10.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -pruN mjpegtools-1.9.0.orig/mplex/lpcmstrm_in.cpp mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp
|
||||
--- mjpegtools-1.9.0.orig/mplex/lpcmstrm_in.cpp 2009-11-03 09:12:41.193553723 +0000
|
||||
+++ mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp 2009-11-03 09:13:54.740427219 +0000
|
||||
@@ -53,7 +53,7 @@ LPCMStream::LPCMStream(IBitStream &ibs,
|
||||
|
||||
bool LPCMStream::Probe(IBitStream &bs )
|
||||
{
|
||||
- char *last_dot = strrchr( bs.StreamName(), '.' );
|
||||
+ const char *last_dot = strrchr( bs.StreamName(), '.' );
|
||||
return
|
||||
last_dot != NULL
|
||||
&& strcmp( last_dot+1, "lpcm") == 0;
|
Loading…
x
Reference in New Issue
Block a user