clamp jumps at SOF
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 5 Mar 2006 21:51:07 +0000 (21:51 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 5 Mar 2006 21:51:07 +0000 (21:51 +0000)
lib/dvb/dvb.cpp

index ad5dfa6..86b1965 100644 (file)
@@ -788,7 +788,11 @@ void eDVBChannel::getNextSourceSpan(off_t current_offset, size_t bytes_read, off
                }
                
                if (relative == 1) /* pts relative */
                }
                
                if (relative == 1) /* pts relative */
+               {
                        pts += now;
                        pts += now;
+                       if (pts < 0)
+                               pts = 0;
+               }
 
                if (relative != 2)
                        if (pts < 0)
 
                if (relative != 2)
                        if (pts < 0)