projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe6ccad
)
tstools: fix resync code
author
Felix Domke
<tmbinc@elitedvb.net>
Tue, 6 Dec 2005 23:41:38 +0000
(23:41 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Tue, 6 Dec 2005 23:41:38 +0000
(23:41 +0000)
lib/dvb/tstools.cpp
patch
|
blob
|
history
diff --git
a/lib/dvb/tstools.cpp
b/lib/dvb/tstools.cpp
index
81e62dd
..
20eb3ce
100644
(file)
--- a/
lib/dvb/tstools.cpp
+++ b/
lib/dvb/tstools.cpp
@@
-71,8
+71,11
@@
int eDVBTSTools::getPTS(off_t &offset, pts_t &pts)
{
int i = 0;
while (i < 188)
+ {
if (block[i] == 0x47)
break;
+ ++i;
+ }
offset = lseek(m_fd, i - 188, SEEK_CUR);
continue;
}
@@
-120,6
+123,7
@@
void eDVBTSTools::calcBegin()
{
if (m_fd < 0)
return;
+
if (!m_begin_valid)
{
m_offset_begin = 0;