summaryrefslogtreecommitdiff
path: root/command/demux.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2011-03-02 22:08:00 +0100
committerJochen Dolze <vdr@dolze.de>2011-03-02 22:08:00 +0100
commitdbcbcef08f7fd9cd09cac5a0db95df1fd24a55ed (patch)
tree8b548b33266c96c2572b9f6a013d3fd9b08f9f82 /command/demux.cpp
parent4b0546e6215d96dbc56822433adece8a0f048195 (diff)
downloadvdr-plugin-markad-dbcbcef08f7fd9cd09cac5a0db95df1fd24a55ed.tar.gz
vdr-plugin-markad-dbcbcef08f7fd9cd09cac5a0db95df1fd24a55ed.tar.bz2
Fixed memory leak in AddMark
Fixed uninitialized variable error in video.cpp Added logo detection for permitting weak marks
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?