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
17fcb170
Commit
17fcb170
authored
Dec 10, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use amf_get_string()
Originally committed as revision 7271 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
759dd138
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
flvdec.c
libavformat/flvdec.c
+2
-8
No files found.
libavformat/flvdec.c
View file @
17fcb170
...
...
@@ -135,20 +135,14 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
int
type
,
len
;
double
d
=
0
;
len
=
get_be16
(
&
s
->
pb
);
if
(
len
>=
sizeof
(
tmp
)
||
!
len
)
if
(
amf_get_string
(
&
s
->
pb
,
tmp
,
sizeof
(
tmp
))
<
0
)
break
;
get_buffer
(
&
s
->
pb
,
tmp
,
len
);
tmp
[
len
]
=
0
;
type
=
get_byte
(
&
s
->
pb
);
if
(
type
==
AMF_DATA_TYPE_NUMBER
){
d
=
av_int2dbl
(
get_be64
(
&
s
->
pb
));
}
else
if
(
type
==
AMF_DATA_TYPE_STRING
){
len
=
get_be16
(
&
s
->
pb
);
if
(
len
>=
sizeof
(
tmp
))
break
;
url_fskip
(
&
s
->
pb
,
len
);
amf_get_string
(
&
s
->
pb
,
NULL
,
0
);
}
else
if
(
type
==
AMF_DATA_TYPE_MIXEDARRAY
){
//array
break
;
...
...
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