  $_def_faad_internal
 diff -ruN -x 'config.*' -x configure.log -x '*.o' -x allformats.c -x vidix -x codecs.conf.h -x version.h -x help_mp.h mplayer-svn/katedec.c mplayer-svn-with-kate/katedec.c
 --- mplayer-svn/katedec.c	1970-01-01 01:00:00.000000000 +0100
-+++ mplayer-svn-with-kate/katedec.c	2008-10-09 09:00:23.000000000 +0100
-@@ -0,0 +1,320 @@
++++ mplayer-svn-with-kate/katedec.c	2008-10-11 14:50:22.000000000 +0100
+@@ -0,0 +1,319 @@
 +/* Katedec.c
 +
 +   ogg.k.ogg.k@googlemail.com
++
++   Decodes Kate streams to text to be rendered with MPlayer's subtitle code,
++   or to be rendered with the Tiger library if available.
 +
 +   For information on the Kate format see:
 +   <URL:http://wiki.xiph.org/index.php/OggKate>

+      katedec_reset();
+    }
+  }
+#endif
+}
+
diff -ruN -x 'config.*' -x configure.log -x '*.o' -x allformats.c -x vidix -x codecs.conf.h -x version.h -x help_mp.h mplayer-svn/katedec.h mplayer-svn-with-kate/katedec.h
--- mplayer-svn/katedec.h	1970-01-01 01:00:00.000000000 +0100
+++ mplayer-svn-with-kate/katedec.h	2008-09-06 18:22:35.000000000 +0100

+        vo_osd_changed(OSDTYPE_KATE);
+      }
+    }
+    return 0;
+}
+
+void katedec_reset()
+{
+  if (katedec_has_kin) {
+    kate_tracker_clear(&katedec_kin);
+    free(katedec_image);
