diff --git a/multimedia/mjpegtools/gcc44.patch b/multimedia/mjpegtools/gcc44.patch new file mode 100644 index 000000000..934db46ed --- /dev/null +++ b/multimedia/mjpegtools/gcc44.patch @@ -0,0 +1,29 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../mjpegtools/gcc44.patch +# Copyright (C) 2010 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +Fix to compile with gcc/g++ >= 4.4 + +--- mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp.orig 2010-08-24 11:59:22.664253099 +0200 ++++ mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp 2010-08-24 12:00:38.764252885 +0200 +@@ -53,7 +53,7 @@ + + 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;