From 2c8889602c593f037f7081597a0e96dd20884254 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sun, 24 Jul 2022 12:07:30 +0200 Subject: [PATCH] h264: improve error message --- pkg/h264/dtsextractor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/h264/dtsextractor.go b/pkg/h264/dtsextractor.go index 88ec3951..96faf38a 100644 --- a/pkg/h264/dtsextractor.go +++ b/pkg/h264/dtsextractor.go @@ -299,7 +299,7 @@ func (d *DTSExtractor) Extract(nalus [][]byte, pts time.Duration) (time.Duration } if d.prevDTS != nil && dts <= *d.prevDTS { - return 0, fmt.Errorf("DTS is not monotonically increasing (was %v, now is %v)", + return 0, fmt.Errorf("DTS is not monotonically increasing, was %v, now is %v", *d.prevDTS, dts) }