Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
17c84f4e
Commit
17c84f4e
authored
Dec 10, 2011
by
Paul B Mahol
Committed by
Justin Ruggles
Dec 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flacdec: skip all track indices at once instead of looping.
Signed-off-by:
Justin Ruggles
<
justin.ruggles@gmail.com
>
parent
c15da594
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
flacdec.c
libavformat/flacdec.c
+2
-3
No files found.
libavformat/flacdec.c
View file @
17c84f4e
...
...
@@ -102,7 +102,7 @@ static int flac_read_header(AVFormatContext *s,
uint8_t
isrc
[
13
];
uint64_t
start
;
const
uint8_t
*
offset
;
int
i
,
j
,
chapters
,
track
,
ti
;
int
i
,
chapters
,
track
,
ti
;
if
(
metadata_size
<
431
)
return
AVERROR_INVALIDDATA
;
offset
=
buffer
+
395
;
...
...
@@ -119,8 +119,7 @@ static int flac_read_header(AVFormatContext *s,
offset
+=
14
;
ti
=
bytestream_get_byte
(
&
offset
);
if
(
ti
<=
0
)
return
AVERROR_INVALIDDATA
;
for
(
j
=
0
;
j
<
ti
;
j
++
)
offset
+=
12
;
offset
+=
ti
*
12
;
avpriv_new_chapter
(
s
,
track
,
st
->
time_base
,
start
,
AV_NOPTS_VALUE
,
isrc
);
}
}
else
{
...
...
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