# HG changeset patch # User diego # Date 1223243082 0 # Node ID db22dd913ac33bd5421cd9bef039a40200c85fbb # Parent 06d645ed0c9f8a6a1426d9dfec02388639a9f513 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 diff -r 06d645ed0c9f -r db22dd913ac3 libmpdemux/asfguid.h --- 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 */ diff -r 06d645ed0c9f -r db22dd913ac3 libmpdemux/asfheader.c --- 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;