[MPlayer-dev-eng] [PATCH] vo_gif89a frame duplication support

Joey Parrish joey at nicewarrior.org
Sun Feb 23 15:45:13 CET 2003


Hello,

Attached below is a patch to add support for frame duplication in
vo_gif89a.  This is useful to keep sync in the gif output generated
by certain movies.

Thanks,
--Joey
-------------- next part --------------
diff -ur 0_90.cvs/libvo/vo_gif89a.c 0_90.dev/libvo/vo_gif89a.c
--- 0_90.cvs/libvo/vo_gif89a.c	Mon Dec 30 16:24:20 2002
+++ 0_90.dev/libvo/vo_gif89a.c	Sun Feb 23 08:09:25 2003
@@ -58,7 +58,7 @@
 #include "../postproc/rgb2rgb.h"
 
 #define MPLAYER_VERSION 0.90
-#define VO_GIF_REVISION 4
+#define VO_GIF_REVISION 5
 
 static vo_info_t info = {
	"animated GIF output",
@@ -369,6 +369,10 @@
 {
	if (request == VOCTRL_QUERY_FORMAT) {
		return query_format(*((uint32_t*)data));
+	}
+	if (request == VOCTRL_DUPLICATE_FRAME) {
+		flip_page();
+		return VO_TRUE;
	}
	return VO_NOTIMPL;
 }


More information about the MPlayer-dev-eng mailing list