summaryrefslogtreecommitdiff
path: root/command/demux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/demux.cpp')
-rw-r--r--command/demux.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/command/demux.cpp b/command/demux.cpp
index 9f634bd..addc95f 100644
--- a/command/demux.cpp
+++ b/command/demux.cpp
@@ -159,21 +159,13 @@ int cPaketQueue::findpktheader(int start, int *streamsize,int *headersize, bool
}
}
}
-
if (i==inptr)
{
if (found)
{
- if (!start)
- {
- scanner=0xFFFFFFFF;
- return -1;
- }
- }
- else
- {
- return -1;
+ scanner=0xFFFFFFFF;
}
+ return -1; // we need more bytes!
}
if (longstartcode) i--;
if (buffer[i]>=0xBC) // do we have a PES packet?