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
f91b635b
Commit
f91b635b
authored
Jun 11, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtmpproto: replace strtok_r by av_strtok its unavailable in mingw
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
94d56502
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rtmpproto.c
libavformat/rtmpproto.c
+4
-4
No files found.
libavformat/rtmpproto.c
View file @
f91b635b
...
...
@@ -130,8 +130,8 @@ static int rtmp_write_amf_data(URLContext *s, char *param, uint8_t **p)
value
=
param
+
2
;
}
else
if
(
param
[
0
]
==
'N'
&&
param
[
1
]
&&
param
[
2
]
==
':'
)
{
type
=
param
[
1
];
field
=
strtok_r
(
param
+
3
,
":"
,
&
saveptr
);
value
=
strtok_r
(
NULL
,
":"
,
&
saveptr
);
field
=
av_strtok
(
param
+
3
,
":"
,
&
saveptr
);
value
=
av_strtok
(
NULL
,
":"
,
&
saveptr
);
if
(
!
field
||
!
value
)
goto
fail
;
...
...
@@ -229,7 +229,7 @@ static int gen_connect(URLContext *s, RTMPContext *rt)
char
*
param
,
*
saveptr
;
// Write arbitrary AMF data to the Connect message.
param
=
strtok_r
(
rt
->
conn
,
" "
,
&
saveptr
);
param
=
av_strtok
(
rt
->
conn
,
" "
,
&
saveptr
);
while
(
param
!=
NULL
)
{
if
((
ret
=
rtmp_write_amf_data
(
s
,
param
,
&
p
))
<
0
)
{
// Invalid AMF parameter.
...
...
@@ -237,7 +237,7 @@ static int gen_connect(URLContext *s, RTMPContext *rt)
return
ret
;
}
param
=
strtok_r
(
NULL
,
" "
,
&
saveptr
);
param
=
av_strtok
(
NULL
,
" "
,
&
saveptr
);
}
}
...
...
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