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
fbd54827
Commit
fbd54827
authored
Sep 18, 2013
by
Luca Barbato
Committed by
Michael Niedermayer
Sep 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtmp: Unbreak handle_notify
Commit
5626f994
broke it.
parent
20dfab33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
rtmpproto.c
libavformat/rtmpproto.c
+14
-13
No files found.
libavformat/rtmpproto.c
View file @
fbd54827
...
...
@@ -2067,7 +2067,7 @@ static int handle_notify(URLContext *s, RTMPPacket *pkt) {
GetByteContext
gbc
;
PutByteContext
pbc
;
uint32_t
ts
;
int
old_flv_size
;
int
old_flv_size
,
err
;
const
uint8_t
*
datatowrite
;
unsigned
datatowritelength
;
...
...
@@ -2095,10 +2095,11 @@ static int handle_notify(URLContext *s, RTMPPacket *pkt) {
old_flv_size
=
rt
->
flv_size
;
rt
->
flv_size
+=
datatowritelength
+
15
;
}
else
{
int
err
;
old_flv_size
=
0
;
rt
->
flv_size
=
datatowritelength
+
15
;
rt
->
flv_off
=
0
;
}
if
((
err
=
av_reallocp
(
&
rt
->
flv_data
,
rt
->
flv_size
))
<
0
)
return
err
;
bytestream2_init_writer
(
&
pbc
,
rt
->
flv_data
,
rt
->
flv_size
);
...
...
@@ -2110,7 +2111,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