* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+#include <vlc/vlc.h>
+
+#include <stdio.h>
#include <stdlib.h> /* malloc(), free() */
-#include <vlc/vlc.h>
#include <vlc/input.h>
#include "codecs.h" /* BITMAPINFOHEADER, WAVEFORMATEX */
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+#include <vlc/vlc.h>
+
+#include <stdio.h>
#include <stdlib.h> /* malloc(), free() */
-#include <vlc/vlc.h>
#include <vlc/input.h>
#ifdef HAVE_ZLIB_H
{
/* SoundDescriptionV2 */
double f_sample_rate;
+ int64_t dummy;
uint32_t i_channel;
MP4_GET4BYTES( p_box->data.p_sample_soun->i_sample_per_packet );
- MP4_GET8BYTES( (*(int64_t *)&f_sample_rate) );
+ MP4_GET8BYTES( dummy );
+ memcpy( &f_sample_rate, &dummy, 8 );
msg_Dbg( p_stream, "read box: %f Hz", f_sample_rate );
p_box->data.p_sample_soun->i_sampleratehi = (int)f_sample_rate % 65536;
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
+
+#include <stdio.h>
+#include <stdlib.h> /* malloc(), free() */
+
#include <vlc/input.h>
#include <vlc_playlist.h>
#include <vlc_md5.h>
vlc_iconv_t conv;
size_t buf16_size;
unsigned char *buf16;
- char *p_buf16;
+ const char *p_buf16;
size_t buf8_size;
char *buf8;
char *p_buf8;
}
buf16_size = length;
- buf16 = (unsigned char *)malloc( buf16_size );
+ buf16 = malloc( buf16_size );
if( buf16 == NULL )
{
msg_Err( p_demux, "out of memory" );
if( load_byte( encoding_type, &buf16[ i ], &p_input, &j, &k ) )
{
msg_Err( p_demux, "load_byte failed" );
- free( (void *)buf16 );
+ free( buf16 );
return NULL;
}
}
buf8_size = length;
- buf8 = (char *)malloc( buf8_size + 1 );
+ buf8 = malloc( buf8_size + 1 );
if( buf8 == NULL )
{
msg_Err( p_demux, "out of memory" );
- free( (void *)buf16 );
+ free( buf16 );
return NULL;
}
if( conv == (vlc_iconv_t)-1 )
{
msg_Err( p_demux, "iconv_open failed" );
- free( (void *)buf16 );
- free( (void *)buf8 );
+ free( buf16 );
+ free( buf8 );
return NULL;
}
- p_buf8 = &buf8[ 0 ];
- p_buf16 = (char *)&buf16[ 0 ];
+ p_buf8 = buf8;
+ p_buf16 = (const char *)buf16;
if( vlc_iconv( conv, &p_buf16, &buf16_size, &p_buf8, &buf8_size ) < 0 )
{
vlc_iconv_close( conv );
- free( (void *)buf16 );
+ free( buf16 );
return buf8;
}
*****************************************************************************/
static int Demux( demux_t *p_demux);
static int Control( demux_t *p_demux, int i_query, va_list args );
-static char *GetNextToken(char *psz_cur_string);
+//static char *GetNextToken(char *psz_cur_string);
static int IsWhitespace( char *psz_string );
/*****************************************************************************
return VLC_EGENERIC;
}
+#if 0
/**
* Get a in-string pointer to the start of the next token from a
* string terminating the pointer returned by a previous call.
psz_cur_string++;
return psz_cur_string;
}
+#endif
static int IsWhitespace( char *psz_string )
{
/*****************************************************************************
* Preamble
*****************************************************************************/
+#include <vlc/vlc.h>
+
+#include <stdio.h>
#include <stdlib.h> /* malloc(), free() */
-#include <vlc/vlc.h>
#include <vlc/input.h>
#include "charset.h"
/*****************************************************************************
* Preamble
*****************************************************************************/
+#include <vlc/vlc.h>
+
+#include <string.h>
#include <stdlib.h>
#include <errno.h>
#endif
#include <ctype.h>
-#include <vlc/vlc.h>
#include <vlc/input.h>
#include "vlc_video.h"
+#include "charset.h"
/*****************************************************************************
* Module descriptor
/*****************************************************************************
* Preamble
*****************************************************************************/
+
+#include <vlc/vlc.h>
+
+#include <stdio.h>
#include <stdlib.h> /* malloc(), free() */
#include <ctype.h>
-#include <vlc/vlc.h>
#include <vlc/input.h>
#include "iso_lang.h"
{
if( p_dr->i_tag == 0x48 )
{
+#if 0
static const char *psz_type[0x11] = {
"Reserved",
"Digital television service",
"RCS FLS (see EN 301 790 [35])",
"DVB MHP service"
};
+#endif
dvbpsi_service_dr_t *pD = dvbpsi_DecodeServiceDr( p_dr );
char str1[257];
char str2[257];
/*****************************************************************************
* Preamble
*****************************************************************************/
+#include <vlc/vlc.h>
+
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <sys/types.h>
-#include <vlc/vlc.h>
#include <vlc/input.h>
#include "vlc_video.h"
#include "charset.h"