Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
655e585f
Commit
655e585f
authored
Mar 29, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* rtp: fixed segfault with mux=
parent
c6413af1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+4
-1
No files found.
modules/stream_out/rtp.c
View file @
655e585f
...
...
@@ -555,9 +555,11 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
}
id
=
malloc
(
sizeof
(
sout_stream_id_t
)
);
memset
(
id
,
0
,
sizeof
(
sout_stream_id_t
)
);
id
->
p_access
=
NULL
;
id
->
p_input
=
p_input
;
id
->
pf_packetize
=
NULL
;
id
->
p_rtsp_url
=
NULL
;
return
id
;
}
...
...
@@ -588,6 +590,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
/* not create the rtp specific stuff */
id
=
malloc
(
sizeof
(
sout_stream_id_t
)
);
memset
(
id
,
0
,
sizeof
(
sout_stream_id_t
)
);
id
->
p_stream
=
p_stream
;
id
->
p_access
=
p_access
;
id
->
p_input
=
NULL
;
...
...
@@ -842,7 +845,7 @@ static int AccessOutGrabberWriteBuffer( sout_stream_t *p_stream,
/* allocate a new packet */
p_sys
->
packet
=
block_New
(
p_stream
,
p_sys
->
i_mtu
);
p_sys
->
packet
->
p_buffer
[
0
]
=
0x80
;
p_sys
->
packet
->
p_buffer
[
1
]
=
p_sys
->
i_payload_type
;
p_sys
->
packet
->
p_buffer
[
1
]
=
0x80
|
p_sys
->
i_payload_type
;
p_sys
->
packet
->
p_buffer
[
2
]
=
(
p_sys
->
i_sequence
>>
8
)
&
0xff
;
p_sys
->
packet
->
p_buffer
[
3
]
=
(
p_sys
->
i_sequence
)
&
0xff
;
p_sys
->
packet
->
p_buffer
[
4
]
=
(
i_timestamp
>>
24
)
&
0xff
;
...
...
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