kate: fix time conversion from DVD style timestamps.

This commit is contained in:
Vincent Penquerc'h 2009-07-21 12:42:33 +01:00 committed by Tim-Philipp Müller
parent 86af4924cc
commit 65b873df34

View file

@ -30,7 +30,7 @@
#define GST_KATE_UINT16_BE(ptr) ( ( ((guint16)((ptr)[0])) <<8) | ((ptr)[1]) ) #define GST_KATE_UINT16_BE(ptr) ( ( ((guint16)((ptr)[0])) <<8) | ((ptr)[1]) )
/* taken off the DVD SPU decoder - now is time for today's WTF ???? */ /* taken off the DVD SPU decoder - now is time for today's WTF ???? */
#define GST_KATE_STM_TO_GST(stm) ((1024 * (stm)) / 90000) #define GST_KATE_STM_TO_GST(stm) ((GST_MSECOND * 1024 * (stm)) / 90)
#define GST_KATE_GST_TO_STM(gst) ((int)(((gst) * 90000 ) / 1024)) #define GST_KATE_GST_TO_STM(gst) ((int)(((gst) * 90000 ) / 1024))
#define GST_KATE_SPU_MIME_TYPE "video/x-dvd-subpicture" #define GST_KATE_SPU_MIME_TYPE "video/x-dvd-subpicture"