Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9d678878
Commit
9d678878
authored
Oct 08, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix uninitialzed warnings and implicit unlink declaration
parent
976bd14b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+10
-9
No files found.
modules/stream_out/rtp.c
View file @
9d678878
...
...
@@ -25,16 +25,17 @@
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
#include <vlc/sout.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <errno.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
#include <vlc/sout.h>
#include "vlc_httpd.h"
#include "vlc_url.h"
#include "network.h"
...
...
@@ -1154,10 +1155,10 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
{
uint8_t
*
p_buffer
=
p_fmt
->
p_extra
;
int
i_buffer
=
p_fmt
->
i_extra
;
char
*
p_64_sps
;
char
*
p_64_pps
;
char
*
p_64_sps
=
NULL
;
char
*
p_64_pps
=
NULL
;
char
hexa
[
6
];
while
(
i_buffer
>
4
&&
p_buffer
[
0
]
==
0
&&
p_buffer
[
1
]
==
0
&&
p_buffer
[
2
]
==
0
&&
p_buffer
[
3
]
==
1
)
...
...
@@ -1167,9 +1168,9 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
int
i_size
=
0
;
int
i_startcode
=
0
;
int
i_encoded
=
0
;
msg_Dbg
(
p_stream
,
"we found a startcode for NAL with TYPE:%d"
,
i_nal_type
);
for
(
i_offset
=
1
;
i_offset
+
3
<
i_buffer
;
i_offset
++
)
{
if
(
p_buffer
[
i_offset
]
==
0
&&
p_buffer
[
i_offset
+
1
]
==
0
&&
p_buffer
[
i_offset
+
2
]
==
0
&&
p_buffer
[
i_offset
+
3
]
==
1
)
...
...
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