mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
h264: improve error message
This commit is contained in:
@@ -299,7 +299,7 @@ func (d *DTSExtractor) Extract(nalus [][]byte, pts time.Duration) (time.Duration
|
|||||||
}
|
}
|
||||||
|
|
||||||
if d.prevDTS != nil && dts <= *d.prevDTS {
|
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)
|
*d.prevDTS, dts)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user