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
e5b5676c
Commit
e5b5676c
authored
Jan 27, 2016
by
Derek Buitenhuis
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
e4eb13ca
'
Merged-by:
Derek Buitenhuis
<
derek.buitenhuis@gmail.com
>
parents
949d6dd5
e4eb13ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
flvdec.c
libavformat/flvdec.c
+13
-11
No files found.
libavformat/flvdec.c
View file @
e5b5676c
...
...
@@ -989,17 +989,19 @@ skip:
retry_duration:
avio_seek
(
s
->
pb
,
fsize
-
4
,
SEEK_SET
);
size
=
avio_rb32
(
s
->
pb
);
// Seek to the start of the last FLV tag at position (fsize - 4 - size)
// but skip the byte indicating the type.
avio_seek
(
s
->
pb
,
fsize
-
3
-
size
,
SEEK_SET
);
if
(
size
==
avio_rb24
(
s
->
pb
)
+
11
)
{
uint32_t
ts
=
avio_rb24
(
s
->
pb
);
ts
|=
avio_r8
(
s
->
pb
)
<<
24
;
if
(
ts
)
s
->
duration
=
ts
*
(
int64_t
)
AV_TIME_BASE
/
1000
;
else
if
(
fsize
>=
8
&&
fsize
-
8
>=
size
)
{
fsize
-=
size
+
4
;
goto
retry_duration
;
if
(
size
>
0
&&
size
<
fsize
)
{
// Seek to the start of the last FLV tag at position (fsize - 4 - size)
// but skip the byte indicating the type.
avio_seek
(
s
->
pb
,
fsize
-
3
-
size
,
SEEK_SET
);
if
(
size
==
avio_rb24
(
s
->
pb
)
+
11
)
{
uint32_t
ts
=
avio_rb24
(
s
->
pb
);
ts
|=
avio_r8
(
s
->
pb
)
<<
24
;
if
(
ts
)
s
->
duration
=
ts
*
(
int64_t
)
AV_TIME_BASE
/
1000
;
else
if
(
fsize
>=
8
&&
fsize
-
8
>=
size
)
{
fsize
-=
size
+
4
;
goto
retry_duration
;
}
}
}
...
...
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