Update of /cvsroot/xineliboutput/vdr-xineliboutput/tools
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv391
Modified Files:
mpeg.c mpeg.h
Log Message:
Added mpeg2_is_sequence_header()
Index: mpeg.c
===================================================================
RCS file: /cvsroot/xineliboutput/vdr-xineliboutput/tools/mpeg.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mpeg.c 2 Feb 2010 22:42:09 -0000 1.4
+++ mpeg.c 31 Dec 2012 16:42:45 -0000 1.5
@@ -31,6 +31,17 @@
return NO_PICTURE;
}
+int mpeg2_is_sequence_header(const uint8_t *buf, int len)
+{
+ int i;
+ for (i = 0; i < len-6; i++) {
+ if (IS_SC_SEQUENCE(buf + i)) {
+ return 1;
+ }
+ }
+ return 0;
+}
+
int mpeg2_get_video_size(const uint8_t *buf, int len, video_size_t *size)
{
int i;
Index: mpeg.h
===================================================================
RCS file: /cvsroot/xineliboutput/vdr-xineliboutput/tools/mpeg.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- mpeg.h 3 Feb 2010 13:49:39 -0000 1.8
+++ mpeg.h 31 Dec 2012 16:42:45 -0000 1.9
@@ -58,6 +58,10 @@
*/
int mpeg2_get_video_size(const uint8_t *buf, int len, video_size_t *size);
+/*
+ *
+ */
+int mpeg2_is_sequence_header(const uint8_t *buf, int len);
#ifdef __cplusplus
} /* extern "C" { */
|