From 3f05fc83e0c103f95b6f81a3a3c945892370d6d1 Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Fri, 29 Sep 2023 09:50:31 +0200 Subject: [PATCH] Rename function --- encode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encode.go b/encode.go index e045e6a..8b1057b 100644 --- a/encode.go +++ b/encode.go @@ -235,8 +235,8 @@ func (e *Encoder) Encode(im image.Image) (err error) { return } -// GetTimestamp returns the current PTS and DTS. -func (e *Encoder) GetTimestamp() (int64, int64) { +// Timestamp returns the current PTS and DTS. +func (e *Encoder) Timestamp() (int64, int64) { return e.pts, e.dts }