You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: MediaFile.ReadFromData throws OverflowException on a malformed Opus file #175
MediaFile.ReadFromData throws OverflowException out of the read for a malformed 315-byte Opus file:
System.OverflowException: TimeSpan overflowed because the duration is too long.
at System.TimeSpan.IntervalFromDoubleTicks(Double ticks)
... AudioProperties.FromOpus (AudioProperties.cs:123)
MediaFile.Read (path) and MediaFile.Read (stream) read the same bytes successfully. Only the span path throws, which breaks the rule that a read reports failure and does not throw.
The span path computes the duration the way the stream path does. A duration that does not fit a TimeSpan is treated as unknown or invalid, and is not an exception. All three entry points agree.
Activity