diff --git a/ext/vorbis/vorbisdec.c b/ext/vorbis/vorbisdec.c
index e4f88d3d96..d37b228577 100644
--- a/ext/vorbis/vorbisdec.c
+++ b/ext/vorbis/vorbisdec.c
@@ -412,7 +412,7 @@ gst_vorbisdec_loop (GstElement * element)
 		outbuf = gst_buffer_new ();
 		GST_BUFFER_DATA (outbuf) = g_malloc (2 * vorbisdec->vi.channels * bout);
 		GST_BUFFER_SIZE (outbuf) = 2 * vorbisdec->vi.channels * bout;
-		GST_BUFFER_TIMESTAMP (outbuf) = vorbisdec->total_out * 1000000LL / vorbisdec->vi.rate;
+		GST_BUFFER_TIMESTAMP (outbuf) = vorbisdec->total_out * GST_SECOND / vorbisdec->vi.rate;
 
 		vorbisdec->total_out += bout;
 
diff --git a/gst/sine/gstsinesrc.c b/gst/sine/gstsinesrc.c
index 807a30dff2..12fb1c8f85 100644
--- a/gst/sine/gstsinesrc.c
+++ b/gst/sine/gstsinesrc.c
@@ -227,7 +227,7 @@ gst_sinesrc_get(GstPad *pad)
 
   GST_DPMAN_PREPROCESS(src->dpman, src->samples_per_buffer, src->timestamp);
   
-  src->timestamp += (gint64)src->samples_per_buffer * 1000000000LL / (gint64)src->samplerate;
+  src->timestamp += (gint64)src->samples_per_buffer * GST_SECOND / (gint64)src->samplerate;
    
   while(GST_DPMAN_PROCESS(src->dpman, i)) {