diff options
author | Vincent Penquerc'h <ogg.k.ogg.k@googlemail.com> | 2009-07-21 12:42:33 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-07-21 12:57:31 +0100 |
commit | 65b873df34fcd35d5719da4aeacc69fc46af6628 (patch) | |
tree | bcd254bf823391997e95ef773a3c13b95a78c5eb /ext | |
parent | 86af4924cca30c2887cece5ffb7608c4a1667589 (diff) | |
download | gst-plugins-bad-65b873df34fcd35d5719da4aeacc69fc46af6628.tar.gz gst-plugins-bad-65b873df34fcd35d5719da4aeacc69fc46af6628.tar.bz2 gst-plugins-bad-65b873df34fcd35d5719da4aeacc69fc46af6628.zip |
kate: fix time conversion from DVD style timestamps.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/kate/gstkatespu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kate/gstkatespu.h b/ext/kate/gstkatespu.h index a9e841bd..b89e7934 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" |