changeset 27691:db22dd913ac3

Move find_backwards_asf_guid asfguid.h to asfheader.c, the only place where it is used. Fixes the following warning: ./libmpdemux/asfguid.h:94: warning: 'find_backwards_asf_guid' defined but not used
author diego
date Sun, 05 Oct 2008 21:44:42 +0000
parents 06d645ed0c9f
children a5c4e1f7aaa7
files libmpdemux/asfguid.h libmpdemux/asfheader.c
diffstat 2 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asfguid.h	Sun Oct 05 21:00:16 2008 +0000
+++ b/libmpdemux/asfguid.h	Sun Oct 05 21:44:42 2008 +0000
@@ -90,14 +90,4 @@
   return -1;
 }
 
-static int find_backwards_asf_guid(char *buf, const char *guid, int cur_pos)
-{
-  int i;
-  for (i=cur_pos-16; i>0; i--) {
-    if (memcmp(&buf[i], guid, 16) == 0)
-      return i + 16 + 8; // point after guid + length
-  }
-  return -1;
-}
-
 #endif /* MPLAYER_ASFGUID_H */
--- a/libmpdemux/asfheader.c	Sun Oct 05 21:00:16 2008 +0000
+++ b/libmpdemux/asfheader.c	Sun Oct 05 21:44:42 2008 +0000
@@ -352,6 +352,16 @@
   return 1;
 }
 
+static int find_backwards_asf_guid(char *buf, const char *guid, int cur_pos)
+{
+  int i;
+  for (i=cur_pos-16; i>0; i--) {
+    if (memcmp(&buf[i], guid, 16) == 0)
+      return i + 16 + 8; // point after guid + length
+  }
+  return -1;
+}
+
 int read_asf_header(demuxer_t *demuxer,struct asf_priv* asf){
   int hdr_len = asf->header.objh.size - sizeof(asf->header);
   int hdr_skip = 0;