summaryrefslogtreecommitdiff
path: root/streaminfo.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-05 09:39:47 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-05 09:39:47 +0100
commita73c755a421cd3b20dd9923c863a74ec860ad9ed (patch)
tree908121f0038cce0125ac0473aaa6fe6a9aee4b63 /streaminfo.h
parent4810e07340050c6651262da3deda8cb565c01c71 (diff)
downloadvdr-plugin-markad-a73c755a421cd3b20dd9923c863a74ec860ad9ed.tar.gz
vdr-plugin-markad-a73c755a421cd3b20dd9923c863a74ec860ad9ed.tar.bz2
Changed H264 handlingv0.0.5
Diffstat (limited to 'streaminfo.h')
-rw-r--r--streaminfo.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/streaminfo.h b/streaminfo.h
index 5c74b0c..7b94e21 100644
--- a/streaminfo.h
+++ b/streaminfo.h
@@ -10,6 +10,7 @@
#define __streaminfo_h_
#include <stdint.h>
+#include <string.h>
#include "global.h"
@@ -25,12 +26,12 @@ private:
NAL_END_SEQ = 0x0A // End of Sequence
};
int nalUnescape(uint8_t *dst, const uint8_t *src, int len);
-
- void FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt, int len);
- void FindH262VideoInfos(MarkAdContext *maContext, uchar *pkt, int len);
+ const uint8_t *nextStartCode(const uint8_t *start, const uint8_t *end);
+ bool FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt, int len);
+ bool FindH262VideoInfos(MarkAdContext *maContext, uchar *pkt, int len);
public:
- void FindVideoInfos(MarkAdContext *maContext, uchar *pkt, int len);
- void FindAC3AudioInfos(MarkAdContext *maContext, uchar *espkt, int eslen);
+ bool FindVideoInfos(MarkAdContext *maContext, uchar *pkt, int len);
+ bool FindAC3AudioInfos(MarkAdContext *maContext, uchar *espkt, int eslen);
};