Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
94644343
Commit
94644343
authored
Sep 25, 2022
by
Zhao Zhili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mp3dec: remove a call to avio_tell()
Signed-off-by:
Zhao Zhili
<
zhilizhao@tencent.com
>
parent
0d17f522
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
mp3dec.c
libavformat/mp3dec.c
+4
-5
No files found.
libavformat/mp3dec.c
View file @
94644343
...
@@ -424,15 +424,14 @@ static int mp3_read_header(AVFormatContext *s)
...
@@ -424,15 +424,14 @@ static int mp3_read_header(AVFormatContext *s)
}
}
}
}
if
(
i
==
64
*
1024
)
{
if
(
i
==
64
*
1024
)
{
ret
=
avio_seek
(
s
->
pb
,
off
,
SEEK_SET
);
off
=
avio_seek
(
s
->
pb
,
off
,
SEEK_SET
);
}
else
{
}
else
{
av_log
(
s
,
i
>
0
?
AV_LOG_INFO
:
AV_LOG_VERBOSE
,
"Skipping %d bytes of junk at %"
PRId64
".
\n
"
,
i
,
off
);
av_log
(
s
,
i
>
0
?
AV_LOG_INFO
:
AV_LOG_VERBOSE
,
"Skipping %d bytes of junk at %"
PRId64
".
\n
"
,
i
,
off
);
ret
=
avio_seek
(
s
->
pb
,
off
+
i
,
SEEK_SET
);
off
=
avio_seek
(
s
->
pb
,
off
+
i
,
SEEK_SET
);
}
}
if
(
ret
<
0
)
if
(
off
<
0
)
return
ret
;
return
off
;
off
=
avio_tell
(
s
->
pb
);
// the seek index is relative to the end of the xing vbr headers
// the seek index is relative to the end of the xing vbr headers
for
(
int
i
=
0
;
i
<
sti
->
nb_index_entries
;
i
++
)
for
(
int
i
=
0
;
i
<
sti
->
nb_index_entries
;
i
++
)
sti
->
index_entries
[
i
].
pos
+=
off
;
sti
->
index_entries
[
i
].
pos
+=
off
;
...
...
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