diff options
-rw-r--r-- | src/ogg_decode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ogg_decode.c b/src/ogg_decode.c index 2cb70c4e1..409e2868e 100644 --- a/src/ogg_decode.c +++ b/src/ogg_decode.c @@ -199,6 +199,7 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) } dc->totalTime = ov_time_total(&vf,-1); + if(dc->totalTime < 0) dc->totalTime = 0; dc->state = DECODE_STATE_DECODE; { |