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
92ed83e3
Commit
92ed83e3
authored
Sep 16, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtmp: Store all the notify messages
The onTextData is used to implement text data streams in flv.
parent
fe0337e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
30 deletions
+29
-30
rtmpproto.c
libavformat/rtmpproto.c
+29
-30
No files found.
libavformat/rtmpproto.c
View file @
92ed83e3
...
...
@@ -2088,10 +2088,9 @@ static int handle_notify(URLContext *s, RTMPPacket *pkt) {
if
(
ff_amf_read_string
(
&
gbc
,
statusmsg
,
sizeof
(
statusmsg
),
&
stringlen
))
return
AVERROR_INVALIDDATA
;
if
(
strcmp
(
statusmsg
,
"onMetaData"
))
{
av_log
(
s
,
AV_LOG_INFO
,
"Expecting onMetadata but got %s
\n
"
,
statusmsg
);
return
0
;
}
else
{
datatowrite
=
pkt
->
data
;
datatowritelength
=
pkt
->
size
;
}
/* Provide ECMAArray to flv */
...
...
@@ -2120,7 +2119,7 @@ static int handle_notify(URLContext *s, RTMPPacket *pkt) {
bytestream2_put_be24
(
&
pbc
,
0
);
bytestream2_put_buffer
(
&
pbc
,
datatowrite
,
datatowritelength
);
bytestream2_put_be32
(
&
pbc
,
0
);
}
return
0
;
}
...
...
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