If somebody would like to try this:
--- remux.c 2004/10/16 09:11:52 1.19
+++ remux.c 2004/10/19 16:23:00
@@ -556,6 +556,11 @@
int resultCount = 0;
uchar *data = resultBuffer->Get(resultCount);
if (data) {
+ if (!synced && resultCount > RESULTBUFFERSIZE * 10 / 8) {//XXX
+ dsyslog("clearing resultBuffer before sync");
+ Clear();
+ return NULL;
+ }//XXX
for (int i = 0; i < resultCount - 3; i++) {
if (data[i] == 0 && data[i + 1] == 0 && data[i + 2] == 1) {
int l = 0;
and let me know whether this message is ever logged, that would be
nice.
What's the idea behind waiting for the buffer to fill up to 125 % (10 / 8)?