Changeset 11edc20cf6bbd6fba977f69a5c4d76576dc7e5d4

Show
Ignore:
Timestamp:
20/07/07 21:45:21 (1 year ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1184960721 +0000
git-parent:

[f7e4f2966af46e183f179121fe55bc77ac8f2b1c]

git-author:
Laurent Aimar <fenrir@videolan.org> 1184960721 +0000
Message:

Fixed a bunch of warning because of stream_Peek change.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/asf/asf.c

    r44cb59e r11edc20  
    109109    demux_sys_t *p_sys; 
    110110    guid_t      guid; 
    111     uint8_t     *p_peek; 
     111    const uint8_t     *p_peek; 
    112112 
    113113    /* A little test to see if it could be a asf stream */ 
     
    142142    for( ;; ) 
    143143    { 
    144         uint8_t *p_peek; 
     144        const uint8_t *p_peek; 
    145145        mtime_t i_length; 
    146146        mtime_t i_time_begin = GetMoviePTS( p_sys ); 
     
    356356    demux_sys_t *p_sys = p_demux->p_sys; 
    357357    int         i_data_packet_min = p_sys->p_fp->i_min_data_packet_size; 
    358     uint8_t    *p_peek; 
     358    const uint8_t *p_peek; 
    359359    int         i_skip; 
    360360 
  • modules/demux/asf/libasf.c

    r49c878c r11edc20  
    5151 * GUID functions 
    5252 ****************************************************************************/ 
    53 void ASF_GetGUID( guid_t *p_guid, uint8_t *p_data ) 
     53void ASF_GetGUID( guid_t *p_guid, const uint8_t *p_data ) 
    5454{ 
    5555    p_guid->v1 = GetDWLE( p_data ); 
     
    7777{ 
    7878    asf_object_common_t *p_common = (asf_object_common_t*)p_obj; 
    79     uint8_t            *p_peek; 
     79    const uint8_t *p_peek; 
    8080 
    8181    if( stream_Peek( s, &p_peek, 24 ) < 24 ) 
     
    141141    asf_object_t        *p_subobj; 
    142142    int                 i_peek; 
    143     uint8_t             *p_peek; 
     143    const uint8_t       *p_peek; 
    144144 
    145145    if( ( i_peek = stream_Peek( s, &p_peek, 30 ) ) < 30 ) 
     
    187187    asf_object_data_t *p_data = (asf_object_data_t*)p_obj; 
    188188    int               i_peek; 
    189     uint8_t           *p_peek; 
     189    const uint8_t     *p_peek; 
    190190 
    191191    if( ( i_peek = stream_Peek( s, &p_peek, 50 ) ) < 50 ) 
     
    212212{ 
    213213    asf_object_index_t *p_index = (asf_object_index_t*)p_obj; 
    214     uint8_t            *p_peek; 
    215     int                i; 
     214    const uint8_t      *p_peek; 
     215    int                i; 
    216216 
    217217    if( stream_Peek( s, &p_peek, p_index->i_object_size ) < 
     
    266266{ 
    267267    asf_object_file_properties_t *p_fp = (asf_object_file_properties_t*)p_obj; 
    268     int      i_peek; 
    269     uint8_t *p_peek; 
     268    int           i_peek; 
     269    const uint8_t *p_peek; 
    270270 
    271271    if( ( i_peek = stream_Peek( s, &p_peek,  104) ) < 104 ) 
     
    323323 
    324324    int i_peek, i_entries, i; 
    325     uint8_t *p_peek; 
     325    const uint8_t *p_peek; 
    326326#ifdef ASF_DEBUG 
    327327    unsigned int j; 
     
    445445        (asf_object_header_extension_t *)p_obj; 
    446446    int     i_peek; 
    447     uint8_t *p_peek; 
     447    const uint8_t *p_peek; 
    448448 
    449449    if( ( i_peek = stream_Peek( s, &p_peek, p_he->i_object_size ) ) <  46) 
     
    509509    asf_object_stream_properties_t *p_sp = 
    510510                    (asf_object_stream_properties_t*)p_obj; 
    511     size_t   i_peek; 
    512     uint8_t *p_peek; 
     511    size_t        i_peek; 
     512    const uint8_t *p_peek; 
    513513 
    514514    if( ( i_peek = stream_Peek( s, &p_peek,  p_sp->i_object_size ) ) < 78 ) 
     
    602602    asf_object_codec_list_t *p_cl = (asf_object_codec_list_t*)p_obj; 
    603603    int     i_peek; 
    604     uint8_t *p_peek, *p_data; 
     604    const uint8_t *p_peek, *p_data; 
    605605 
    606606    unsigned int i_codec; 
     
    711711    asf_object_content_description_t *p_cd = 
    712712        (asf_object_content_description_t *)p_obj; 
    713     uint8_t *p_peek, *p_data; 
     713    const uint8_t *p_peek, *p_data; 
    714714    int i_peek, i_title, i_artist, i_copyright, i_description, i_rating; 
    715715    vlc_iconv_t cd = (vlc_iconv_t)-1; 
     
    785785    asf_object_language_list_t *p_ll = 
    786786        (asf_object_language_list_t*)p_obj; 
    787     uint8_t *p_peek, *p_data; 
     787    const uint8_t *p_peek, *p_data; 
    788788    int i_peek; 
    789789    int i; 
     
    844844    asf_object_stream_bitrate_properties_t *p_sb = 
    845845        (asf_object_stream_bitrate_properties_t *)p_obj; 
    846     uint8_t *p_peek, *p_data; 
     846    const uint8_t *p_peek, *p_data; 
    847847    int i_peek; 
    848848    int i; 
     
    883883    asf_object_extended_stream_properties_t *p_esp = 
    884884        (asf_object_extended_stream_properties_t*)p_obj; 
    885     uint8_t *p_peek, *p_data; 
     885    const uint8_t *p_peek, *p_data; 
    886886    int i_peek, i; 
    887887 
     
    10081008    asf_object_advanced_mutual_exclusion_t *p_ae = 
    10091009        (asf_object_advanced_mutual_exclusion_t *)p_obj; 
    1010     uint8_t *p_peek, *p_data; 
     1010    const uint8_t *p_peek, *p_data; 
    10111011    int i_peek; 
    10121012    int i; 
     
    10501050    asf_object_stream_prioritization_t *p_sp = 
    10511051        (asf_object_stream_prioritization_t *)p_obj; 
    1052     uint8_t *p_peek, *p_data; 
     1052    const uint8_t *p_peek, *p_data; 
    10531053    int i_peek; 
    10541054    int i; 
     
    10951095    asf_object_extended_content_description_t *p_ec = 
    10961096        (asf_object_extended_content_description_t *)p_obj; 
    1097     uint8_t *p_peek, *p_data; 
     1097    const uint8_t *p_peek, *p_data; 
    10981098    int i_peek; 
    10991099    int i; 
     
    12051205    asf_object_XXX_t *p_XX = 
    12061206        (asf_object_XXX_t *)p_obj; 
    1207     uint8_t *p_peek, *p_data; 
     1207    const uint8_t *p_peek; 
     1208    uint8_t *p_data; 
    12081209    int i_peek; 
    12091210 
  • modules/demux/asf/libasf.h

    r308d7c4 r11edc20  
    450450 
    451451 
    452 void ASF_GetGUID( guid_t *p_guid, uint8_t *p_data ); 
     452void ASF_GetGUID( guid_t *p_guid, const uint8_t *p_data ); 
    453453int  ASF_CmpGUID( const guid_t *p_guid1, const guid_t *p_guid2 ); 
    454454 
  • modules/demux/mp4/libmp4.c

    r698e95d r11edc20  
    113113*/ 
    114114 
    115 static uint32_t Get24bBE( uint8_t *p ) 
     115static uint32_t Get24bBE( const uint8_t *p ) 
    116116{ 
    117117    return( ( p[0] <<16 ) + ( p[1] <<8 ) + p[2] ); 
    118118} 
    119119 
    120 static void GetUUID( UUID_t *p_uuid, uint8_t *p_buff ) 
     120static void GetUUID( UUID_t *p_uuid, const uint8_t *p_buff ) 
    121121{ 
    122122    memcpy( p_uuid, p_buff, 16 ); 
     
    166166{ 
    167167    int      i_read; 
    168     uint8_t  *p_peek; 
     168    const uint8_t  *p_peek; 
    169169 
    170170    if( ( ( i_read = stream_Peek( p_stream, &p_peek, 32 ) ) < 8 ) ) 
     
    316316        p_box->i_type == FOURCC_free ) 
    317317    { 
    318         uint8_t *p_peek; 
     318        const uint8_t *p_peek; 
    319319        int     i_read; 
    320320        vlc_fourcc_t i_fcc;