Commit 9d678878 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix uninitialzed warnings and implicit unlink declaration

parent 976bd14b
...@@ -25,16 +25,17 @@ ...@@ -25,16 +25,17 @@
* Preamble * Preamble
*****************************************************************************/ *****************************************************************************/
#include <stdlib.h> #include <stdlib.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
#include <vlc/sout.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <errno.h> #include <errno.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
#include <vlc/sout.h>
#include "vlc_httpd.h" #include "vlc_httpd.h"
#include "vlc_url.h" #include "vlc_url.h"
#include "network.h" #include "network.h"
...@@ -1154,10 +1155,10 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt ) ...@@ -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; uint8_t *p_buffer = p_fmt->p_extra;
int i_buffer = p_fmt->i_extra; int i_buffer = p_fmt->i_extra;
char *p_64_sps; char *p_64_sps = NULL;
char *p_64_pps; char *p_64_pps = NULL;
char hexa[6]; char hexa[6];
while( i_buffer > 4 && while( i_buffer > 4 &&
p_buffer[0] == 0 && p_buffer[1] == 0 && p_buffer[0] == 0 && p_buffer[1] == 0 &&
p_buffer[2] == 0 && p_buffer[3] == 1 ) 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 ) ...@@ -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_size = 0;
int i_startcode = 0; int i_startcode = 0;
int i_encoded = 0; int i_encoded = 0;
msg_Dbg( p_stream, "we found a startcode for NAL with TYPE:%d", i_nal_type ); 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++) 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 ) if( p_buffer[i_offset] == 0 && p_buffer[i_offset+1] == 0 && p_buffer[i_offset+2] == 0 && p_buffer[i_offset+3] == 1 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment