[MPlayer-dev-eng] demux_GIF prob? Fwd: [MPlayer-users] a problemand a questi

Joey Parrish joey at nicewarrior.org
Fri Feb 14 19:03:10 CET 2003


On Fri, Feb 14, 2003 at 11:13:02AM +0000, michael c wrote:
> I have the exact same problem (didn't need mplayer to play gifs though, so 
> i disabled it and it compiles that way). I'm using debian testing, which 
> has the following versions of the gif libs installed:

> giflib3g 3.0-6
> libungif4g 4.1.0b1-3

> running "apt-get install giflib4g" causes libungif4g to be installed.

Ah.  I see.  Well, first off, I recommend uninstalling giflib and making
it a symbolic link to libungif.  Libungif is backwards compatible with
libgif and is more bugfixed in every sense.  Second, I suggest this
patch in addition to the last one I submitted.  I see now that in the
case where both libgif and libungif are installed, libgif is taking
precedence and causing problems with the new demux code.  Thus, this
patch will make configure prefer libungif over libgif.  Configure
originally looked for libgif first because of the compression code it
has, but now that I am aware of compatibility issues, compatibility is
more important than compression.  (By the way, after June 2003 LZW is no
longer patent protected.)

> Hope that helps.

Yes, it helps very much.

Thanks,
--Joey
-------------- next part --------------
diff -ur 0_90.cvs/configure 0_90.dev/configure
--- 0_90.cvs/configure	Thu Feb 13 15:57:26 2003
+++ 0_90.dev/configure	Fri Feb 14 12:00:43 2003
@@ -2911,18 +2911,18 @@
   return 0;
 }
 EOF
-  if cc_check -lgif && "$TMPO" >> "$TMPLOG" ; then
-    _gif=yes
-    _ld_gif="-lgif"
-  elif cc_check -lungif && "$TMPO" >> "$TMPLOG" ; then
+  if cc_check -lungif && "$TMPO" >> "$TMPLOG" ; then
     _gif=yes
     _ld_gif="-lungif"
-  elif cc_check -lgif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then
+  elif cc_check -lgif && "$TMPO" >> "$TMPLOG" ; then
     _gif=yes
-    _ld_gif="-lgif $_ld_x11"
+    _ld_gif="-lgif"
   elif cc_check -lungif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then
     _gif=yes
     _ld_gif="-lungif $_ld_x11"
+  elif cc_check -lgif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then
+    _gif=yes
+    _ld_gif="-lgif $_ld_x11"
   fi
 fi
 


More information about the MPlayer-dev-eng mailing list