From: Vincent Penquerc'h Date: Tue, 21 Jul 2009 11:42:33 +0000 (+0100) Subject: kate: fix time conversion from DVD style timestamps. X-Git-Tag: 1.19.3~507^2~18382 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65b873df34fcd35d5719da4aeacc69fc46af6628;p=platform%2Fupstream%2Fgstreamer.git kate: fix time conversion from DVD style timestamps. --- diff --git a/ext/kate/gstkatespu.h b/ext/kate/gstkatespu.h index a9e841bd1f..b89e793421 100644 --- a/ext/kate/gstkatespu.h +++ b/ext/kate/gstkatespu.h @@ -30,7 +30,7 @@ #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 ???? */ -#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_SPU_MIME_TYPE "video/x-dvd-subpicture"