summaryrefslogtreecommitdiff
path: root/tools/pes.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pes.h')
-rw-r--r--tools/pes.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/pes.h b/tools/pes.h
index 93d6dfb5..94e9cff8 100644
--- a/tools/pes.h
+++ b/tools/pes.h
@@ -4,14 +4,16 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: pes.h,v 1.10 2009-02-10 11:24:20 phintuka Exp $
+ * $Id: pes.h,v 1.11 2009-02-16 16:03:18 phintuka Exp $
*
*/
#ifndef _XINELIBOUTPUT_PES_H_
#define _XINELIBOUTPUT_PES_H_
-#include "mpeg.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
/*
@@ -70,9 +72,11 @@ int pes_strip_pts_dts(uint8_t *buf, int len);
* payload
*/
+struct video_size_s;
+
int pes_is_frame_h264(const uint8_t *buf, int len);
uint8_t pes_get_picture_type(const uint8_t *buf, int len);
-int pes_get_video_size(const uint8_t *buf, int len, video_size_t *size, int h264);
+int pes_get_video_size(const uint8_t *buf, int len, struct video_size_s *size, int h264);
static inline int pes_is_mpeg1(const uint8_t *header)
{
@@ -105,4 +109,8 @@ static inline int pes_packet_len(const uint8_t *data, const int len)
}
+#ifdef __cplusplus
+} /* extern "C" { */
+#endif
+
#endif /* _XINELIBOUTPUT_PES_H_ */