summaryrefslogtreecommitdiff
path: root/command/streaminfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/streaminfo.cpp')
-rw-r--r--command/streaminfo.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/command/streaminfo.cpp b/command/streaminfo.cpp
index fb2bc9c..566bb45 100644
--- a/command/streaminfo.cpp
+++ b/command/streaminfo.cpp
@@ -9,6 +9,11 @@
cMarkAdStreamInfo::cMarkAdStreamInfo()
{
+ Clear();
+}
+
+void cMarkAdStreamInfo::Clear()
+{
memset(&H264,0,sizeof(H264));
H264.frame_num=-1;
}
@@ -489,16 +494,6 @@ bool cMarkAdStreamInfo::FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt,
return false;
}
-const uint8_t *cMarkAdStreamInfo::nextStartCode(const uint8_t *start, const uint8_t *end)
-{
- for (end -= 4; start < end; ++start)
- {
- if ((start[0] == 0x00) && (start[1] == 0x00) && (start[2] == 0x00) && (start[3] == 0x01))
- return start;
- }
- return (end + 4);
-}
-
bool cMarkAdStreamInfo::FindH262VideoInfos(MarkAdContext *maContext, uchar *pkt, int len)
{
if ((!maContext) || (!pkt) || (!len)) return false;