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 ad5dfa641ea9d4fa35658e186be3842cd62bee34..86b1965e31b4bf802cc176281566541f8c9331fb 100644 (file)
@@ -788,7 +788,11 @@ void eDVBChannel::getNextSourceSpan(off_t current_offset, size_t bytes_read, off
                }
                
                if (relative == 1) /* pts relative */
+               {
                        pts += now;
+                       if (pts < 0)
+                               pts = 0;
+               }
 
                if (relative != 2)
                        if (pts < 0)