mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27723 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8ecc4934ef
commit
980239fa82
@ -90,14 +90,4 @@ static int find_asf_guid(char *buf, const char *guid, int cur_pos, int buf_len)
|
||||
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 */
|
||||
|
@ -352,6 +352,16 @@ static int asf_init_audio_stream(demuxer_t *demuxer,struct asf_priv* asf, sh_aud
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user