Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
5a950285
Commit
5a950285
authored
Mar 18, 2003
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Seek one less time. Should increase performance with access modules where
seeks are expensive. (Though not enough)
parent
f2dd0b84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
modules/demux/util/id3tag.c
modules/demux/util/id3tag.c
+4
-9
No files found.
modules/demux/util/id3tag.c
View file @
5a950285
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* id3tag.c: id3 tag parser/skipper based on libid3tag
* id3tag.c: id3 tag parser/skipper based on libid3tag
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: id3tag.c,v 1.
5 2003/03/13 22:35:51
sigmunau Exp $
* $Id: id3tag.c,v 1.
6 2003/03/18 00:33:29
sigmunau Exp $
*
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
*
...
@@ -150,20 +150,15 @@ static int ParseID3Tags( vlc_object_t *p_this )
...
@@ -150,20 +150,15 @@ static int ParseID3Tags( vlc_object_t *p_this )
}
}
ParseID3Tag
(
p_input
,
p_peek
,
i_size2
);
ParseID3Tag
(
p_input
,
p_peek
,
i_size2
);
}
}
}
/* look for id3v2.4 tag at end of file */
/* look for id3v2.4 tag at end of file */
if
(
p_pos
->
i_size
>
10
)
{
input_AccessReinit
(
p_input
);
p_input
->
pf_seek
(
p_input
,
p_pos
->
i_size
-
10
);
/* get 10 byte id3 footer */
/* get 10 byte id3 footer */
if
(
input_Peek
(
p_input
,
&
p_peek
,
1
0
)
<
10
)
if
(
input_Peek
(
p_input
,
&
p_peek
,
1
28
)
<
128
)
{
{
msg_Err
(
p_input
,
"cannot peek()"
);
msg_Err
(
p_input
,
"cannot peek()"
);
return
(
VLC_EGENERIC
);
return
(
VLC_EGENERIC
);
}
}
i_size2
=
id3_tag_query
(
p_peek
,
10
);
i_size2
=
id3_tag_query
(
p_peek
+
118
,
10
);
if
(
i_size2
<
0
&&
p_pos
->
i_size
>
-
i_size2
)
if
(
i_size2
<
0
&&
p_pos
->
i_size
>
-
i_size2
)
{
/* id3v2.4 footer found */
{
/* id3v2.4 footer found */
input_AccessReinit
(
p_input
);
input_AccessReinit
(
p_input
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment