/****************************************************************************
* GUID functions
****************************************************************************/
-void ASF_GetGUID( guid_t *p_guid, uint8_t *p_data )
+void ASF_GetGUID( guid_t *p_guid, const uint8_t *p_data )
{
p_guid->v1 = GetDWLE( p_data );
p_guid->v2 = GetWLE( p_data + 4);
static int ASF_ReadObjectCommon( stream_t *s, asf_object_t *p_obj )
{
asf_object_common_t *p_common = (asf_object_common_t*)p_obj;
- uint8_t *p_peek;
+ const uint8_t *p_peek;
if( stream_Peek( s, &p_peek, 24 ) < 24 )
{
asf_object_header_t *p_hdr = (asf_object_header_t*)p_obj;
asf_object_t *p_subobj;
int i_peek;
- uint8_t *p_peek;
+ const uint8_t *p_peek;
if( ( i_peek = stream_Peek( s, &p_peek, 30 ) ) < 30 )
{
{
asf_object_data_t *p_data = (asf_object_data_t*)p_obj;
int i_peek;
- uint8_t *p_peek;
+ const uint8_t *p_peek;
if( ( i_peek = stream_Peek( s, &p_peek, 50 ) ) < 50 )
{
static int ASF_ReadObject_Index( stream_t *s, asf_object_t *p_obj )
{
asf_object_index_t *p_index = (asf_object_index_t*)p_obj;
- uint8_t *p_peek;
- int i;
+ const uint8_t *p_peek;
+ int i;
if( stream_Peek( s, &p_peek, p_index->i_object_size ) <
(int)p_index->i_object_size )
static int ASF_ReadObject_file_properties( stream_t *s, asf_object_t *p_obj )
{
asf_object_file_properties_t *p_fp = (asf_object_file_properties_t*)p_obj;
- int i_peek;
- uint8_t *p_peek;
+ int i_peek;
+ const uint8_t *p_peek;
if( ( i_peek = stream_Peek( s, &p_peek, 104) ) < 104 )
{
(asf_object_metadata_t *)p_obj;
int i_peek, i_entries, i;
- uint8_t *p_peek;
+ const uint8_t *p_peek;
#ifdef ASF_DEBUG
unsigned int j;
#endif
asf_object_header_extension_t *p_he =
(asf_object_header_extension_t *)p_obj;
int i_peek;
- uint8_t *p_peek;
+ const uint8_t *p_peek;
if( ( i_peek = stream_Peek( s, &p_peek, p_he->i_object_size ) ) < 46)
{
{
asf_object_stream_properties_t *p_sp =
(asf_object_stream_properties_t*)p_obj;
- size_t i_peek;
- uint8_t *p_peek;
+ size_t i_peek;
+ const uint8_t *p_peek;
if( ( i_peek = stream_Peek( s, &p_peek, p_sp->i_object_size ) ) < 78 )
{
{
asf_object_codec_list_t *p_cl = (asf_object_codec_list_t*)p_obj;
int i_peek;
- uint8_t *p_peek, *p_data;
+ const uint8_t *p_peek, *p_data;
unsigned int i_codec;
{
asf_object_content_description_t *p_cd =
(asf_object_content_description_t *)p_obj;
- uint8_t *p_peek, *p_data;
+ const uint8_t *p_peek, *p_data;
int i_peek, i_title, i_artist, i_copyright, i_description, i_rating;
vlc_iconv_t cd = (vlc_iconv_t)-1;
const char *ib = NULL;
{
asf_object_language_list_t *p_ll =
(asf_object_language_list_t*)p_obj;
- uint8_t *p_peek, *p_data;
+ const uint8_t *p_peek, *p_data;
int i_peek;
int i;
{
asf_object_stream_bitrate_properties_t *p_sb =
(asf_object_stream_bitrate_properties_t *)p_obj;
- uint8_t *p_peek, *p_data;
+ const uint8_t *p_peek, *p_data;
int i_peek;
int i;
{
asf_object_extended_stream_properties_t *p_esp =
(asf_object_extended_stream_properties_t*)p_obj;
- uint8_t *p_peek, *p_data;
+ const uint8_t *p_peek, *p_data;
int i_peek, i;
if( ( i_peek = stream_Peek( s, &p_peek, p_esp->i_object_size ) ) < 88 )
{
asf_object_advanced_mutual_exclusion_t *p_ae =
(asf_object_advanced_mutual_exclusion_t *)p_obj;
- uint8_t *p_peek, *p_data;
+ const uint8_t *p_peek, *p_data;
int i_peek;
int i;
{
asf_object_stream_prioritization_t *p_sp =
(asf_object_stream_prioritization_t *)p_obj;
- uint8_t *p_peek, *p_data;
+ const uint8_t *p_peek, *p_data;
int i_peek;
int i;
{
asf_object_extended_content_description_t *p_ec =
(asf_object_extended_content_description_t *)p_obj;
- uint8_t *p_peek, *p_data;
+ const uint8_t *p_peek, *p_data;
int i_peek;
int i;
{
asf_object_XXX_t *p_XX =
(asf_object_XXX_t *)p_obj;
- uint8_t *p_peek, *p_data;
+ const uint8_t *p_peek;
+ uint8_t *p_data;
int i_peek;
if( ( i_peek = stream_Peek( s, &p_peek, p_XX->i_object_size ) ) < XXX )