summarylogtreecommitdiffstats
path: root/giflib-5.1.patch
diff options
context:
space:
mode:
authorsl1pkn072015-06-08 18:40:44 +0200
committersl1pkn072015-06-08 18:40:44 +0200
commitc93d29b44dd838d76394aa659a44b22305ff0d22 (patch)
tree7efe8ff58535d37897a53b1820382c75a01275e9 /giflib-5.1.patch
downloadaur-c93d29b44dd838d76394aa659a44b22305ff0d22.tar.gz
Initial commit
Diffstat (limited to 'giflib-5.1.patch')
-rw-r--r--giflib-5.1.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/giflib-5.1.patch b/giflib-5.1.patch
new file mode 100644
index 000000000000..216c0c026b79
--- /dev/null
+++ b/giflib-5.1.patch
@@ -0,0 +1,38 @@
+diff -ur mplayer2/libmpdemux/demux_gif.c mplayer2-patched/libmpdemux/demux_gif.c
+--- mplayer2/libmpdemux/demux_gif.c 2014-06-15 23:14:22.159745049 +0400
++++ mplayer2-patched/libmpdemux/demux_gif.c 2014-06-15 23:18:06.329743015 +0400
+@@ -311,7 +311,15 @@
+ {
+ gif_priv_t *priv = demuxer->priv;
+ if (!priv) return;
++#if GIFLIB_MAJOR == 5
++ #if GIFLIB_MINOR >= 1
++ if (priv->gif && DGifCloseFile(priv->gif, NULL) == GIF_ERROR)
++ #else
++ if (priv->gif && DGifCloseFile(priv->gif) == GIF_ERROR)
++ #endif
++#else
+ if (priv->gif && DGifCloseFile(priv->gif) == GIF_ERROR)
++#endif
+ PrintGifError();
+ free(priv->refimg);
+ free(priv);
+diff -ur mplayer2/libvo/vo_gif89a.c mplayer2-patched/libvo/vo_gif89a.c
+--- mplayer2/libvo/vo_gif89a.c 2014-06-15 23:16:34.426410512 +0400
++++ mplayer2-patched/libvo/vo_gif89a.c 2014-06-15 23:15:41.833077660 +0400
+@@ -370,7 +370,15 @@
+ MPLAYER_VERSION, VO_GIF_REVISION,
+ "joey@nicewarrior.org");
+ EGifPutComment(new_gif, temp);
++#if GIFLIB_MAJOR == 5
++ #if GIFLIB_MINOR >= 1
++ EGifCloseFile(new_gif, NULL); // also frees gif storage space.
++ #else
+ EGifCloseFile(new_gif); // also frees gif storage space.
++ #endif
++#else
++ EGifCloseFile(new_gif); // also frees gif storage space.
++#endif
+ }
+
+ // free our allocated ram