Changeset 11edc20cf6bbd6fba977f69a5c4d76576dc7e5d4
- 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
| r44cb59e |
r11edc20 |
|
| 109 | 109 | demux_sys_t *p_sys; |
|---|
| 110 | 110 | guid_t guid; |
|---|
| 111 | | uint8_t *p_peek; |
|---|
| | 111 | const uint8_t *p_peek; |
|---|
| 112 | 112 | |
|---|
| 113 | 113 | /* A little test to see if it could be a asf stream */ |
|---|
| … | … | |
| 142 | 142 | for( ;; ) |
|---|
| 143 | 143 | { |
|---|
| 144 | | uint8_t *p_peek; |
|---|
| | 144 | const uint8_t *p_peek; |
|---|
| 145 | 145 | mtime_t i_length; |
|---|
| 146 | 146 | mtime_t i_time_begin = GetMoviePTS( p_sys ); |
|---|
| … | … | |
| 356 | 356 | demux_sys_t *p_sys = p_demux->p_sys; |
|---|
| 357 | 357 | 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; |
|---|
| 359 | 359 | int i_skip; |
|---|
| 360 | 360 | |
|---|
| r49c878c |
r11edc20 |
|
| 51 | 51 | * GUID functions |
|---|
| 52 | 52 | ****************************************************************************/ |
|---|
| 53 | | void ASF_GetGUID( guid_t *p_guid, uint8_t *p_data ) |
|---|
| | 53 | void ASF_GetGUID( guid_t *p_guid, const uint8_t *p_data ) |
|---|
| 54 | 54 | { |
|---|
| 55 | 55 | p_guid->v1 = GetDWLE( p_data ); |
|---|
| … | … | |
| 77 | 77 | { |
|---|
| 78 | 78 | asf_object_common_t *p_common = (asf_object_common_t*)p_obj; |
|---|
| 79 | | uint8_t *p_peek; |
|---|
| | 79 | const uint8_t *p_peek; |
|---|
| 80 | 80 | |
|---|
| 81 | 81 | if( stream_Peek( s, &p_peek, 24 ) < 24 ) |
|---|
| … | … | |
| 141 | 141 | asf_object_t *p_subobj; |
|---|
| 142 | 142 | int i_peek; |
|---|
| 143 | | uint8_t *p_peek; |
|---|
| | 143 | const uint8_t *p_peek; |
|---|
| 144 | 144 | |
|---|
| 145 | 145 | if( ( i_peek = stream_Peek( s, &p_peek, 30 ) ) < 30 ) |
|---|
| … | … | |
| 187 | 187 | asf_object_data_t *p_data = (asf_object_data_t*)p_obj; |
|---|
| 188 | 188 | int i_peek; |
|---|
| 189 | | uint8_t *p_peek; |
|---|
| | 189 | const uint8_t *p_peek; |
|---|
| 190 | 190 | |
|---|
| 191 | 191 | if( ( i_peek = stream_Peek( s, &p_peek, 50 ) ) < 50 ) |
|---|
| … | … | |
| 212 | 212 | { |
|---|
| 213 | 213 | 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; |
|---|
| 216 | 216 | |
|---|
| 217 | 217 | if( stream_Peek( s, &p_peek, p_index->i_object_size ) < |
|---|
| … | … | |
| 266 | 266 | { |
|---|
| 267 | 267 | 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; |
|---|
| 270 | 270 | |
|---|
| 271 | 271 | if( ( i_peek = stream_Peek( s, &p_peek, 104) ) < 104 ) |
|---|
| … | … | |
| 323 | 323 | |
|---|
| 324 | 324 | int i_peek, i_entries, i; |
|---|
| 325 | | uint8_t *p_peek; |
|---|
| | 325 | const uint8_t *p_peek; |
|---|
| 326 | 326 | #ifdef ASF_DEBUG |
|---|
| 327 | 327 | unsigned int j; |
|---|
| … | … | |
| 445 | 445 | (asf_object_header_extension_t *)p_obj; |
|---|
| 446 | 446 | int i_peek; |
|---|
| 447 | | uint8_t *p_peek; |
|---|
| | 447 | const uint8_t *p_peek; |
|---|
| 448 | 448 | |
|---|
| 449 | 449 | if( ( i_peek = stream_Peek( s, &p_peek, p_he->i_object_size ) ) < 46) |
|---|
| … | … | |
| 509 | 509 | asf_object_stream_properties_t *p_sp = |
|---|
| 510 | 510 | (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; |
|---|
| 513 | 513 | |
|---|
| 514 | 514 | if( ( i_peek = stream_Peek( s, &p_peek, p_sp->i_object_size ) ) < 78 ) |
|---|
| … | … | |
| 602 | 602 | asf_object_codec_list_t *p_cl = (asf_object_codec_list_t*)p_obj; |
|---|
| 603 | 603 | int i_peek; |
|---|
| 604 | | uint8_t *p_peek, *p_data; |
|---|
| | 604 | const uint8_t *p_peek, *p_data; |
|---|
| 605 | 605 | |
|---|
| 606 | 606 | unsigned int i_codec; |
|---|
| … | … | |
| 711 | 711 | asf_object_content_description_t *p_cd = |
|---|
| 712 | 712 | (asf_object_content_description_t *)p_obj; |
|---|
| 713 | | uint8_t *p_peek, *p_data; |
|---|
| | 713 | const uint8_t *p_peek, *p_data; |
|---|
| 714 | 714 | int i_peek, i_title, i_artist, i_copyright, i_description, i_rating; |
|---|
| 715 | 715 | vlc_iconv_t cd = (vlc_iconv_t)-1; |
|---|
| … | … | |
| 785 | 785 | asf_object_language_list_t *p_ll = |
|---|
| 786 | 786 | (asf_object_language_list_t*)p_obj; |
|---|
| 787 | | uint8_t *p_peek, *p_data; |
|---|
| | 787 | const uint8_t *p_peek, *p_data; |
|---|
| 788 | 788 | int i_peek; |
|---|
| 789 | 789 | int i; |
|---|
| … | … | |
| 844 | 844 | asf_object_stream_bitrate_properties_t *p_sb = |
|---|
| 845 | 845 | (asf_object_stream_bitrate_properties_t *)p_obj; |
|---|
| 846 | | uint8_t *p_peek, *p_data; |
|---|
| | 846 | const uint8_t *p_peek, *p_data; |
|---|
| 847 | 847 | int i_peek; |
|---|
| 848 | 848 | int i; |
|---|
| … | … | |
| 883 | 883 | asf_object_extended_stream_properties_t *p_esp = |
|---|
| 884 | 884 | (asf_object_extended_stream_properties_t*)p_obj; |
|---|
| 885 | | uint8_t *p_peek, *p_data; |
|---|
| | 885 | const uint8_t *p_peek, *p_data; |
|---|
| 886 | 886 | int i_peek, i; |
|---|
| 887 | 887 | |
|---|
| … | … | |
| 1008 | 1008 | asf_object_advanced_mutual_exclusion_t *p_ae = |
|---|
| 1009 | 1009 | (asf_object_advanced_mutual_exclusion_t *)p_obj; |
|---|
| 1010 | | uint8_t *p_peek, *p_data; |
|---|
| | 1010 | const uint8_t *p_peek, *p_data; |
|---|
| 1011 | 1011 | int i_peek; |
|---|
| 1012 | 1012 | int i; |
|---|
| … | … | |
| 1050 | 1050 | asf_object_stream_prioritization_t *p_sp = |
|---|
| 1051 | 1051 | (asf_object_stream_prioritization_t *)p_obj; |
|---|
| 1052 | | uint8_t *p_peek, *p_data; |
|---|
| | 1052 | const uint8_t *p_peek, *p_data; |
|---|
| 1053 | 1053 | int i_peek; |
|---|
| 1054 | 1054 | int i; |
|---|
| … | … | |
| 1095 | 1095 | asf_object_extended_content_description_t *p_ec = |
|---|
| 1096 | 1096 | (asf_object_extended_content_description_t *)p_obj; |
|---|
| 1097 | | uint8_t *p_peek, *p_data; |
|---|
| | 1097 | const uint8_t *p_peek, *p_data; |
|---|
| 1098 | 1098 | int i_peek; |
|---|
| 1099 | 1099 | int i; |
|---|
| … | … | |
| 1205 | 1205 | asf_object_XXX_t *p_XX = |
|---|
| 1206 | 1206 | (asf_object_XXX_t *)p_obj; |
|---|
| 1207 | | uint8_t *p_peek, *p_data; |
|---|
| | 1207 | const uint8_t *p_peek; |
|---|
| | 1208 | uint8_t *p_data; |
|---|
| 1208 | 1209 | int i_peek; |
|---|
| 1209 | 1210 | |
|---|
| r308d7c4 |
r11edc20 |
|
| 450 | 450 | |
|---|
| 451 | 451 | |
|---|
| 452 | | void ASF_GetGUID( guid_t *p_guid, uint8_t *p_data ); |
|---|
| | 452 | void ASF_GetGUID( guid_t *p_guid, const uint8_t *p_data ); |
|---|
| 453 | 453 | int ASF_CmpGUID( const guid_t *p_guid1, const guid_t *p_guid2 ); |
|---|
| 454 | 454 | |
|---|
| r698e95d |
r11edc20 |
|
| 113 | 113 | */ |
|---|
| 114 | 114 | |
|---|
| 115 | | static uint32_t Get24bBE( uint8_t *p ) |
|---|
| | 115 | static uint32_t Get24bBE( const uint8_t *p ) |
|---|
| 116 | 116 | { |
|---|
| 117 | 117 | return( ( p[0] <<16 ) + ( p[1] <<8 ) + p[2] ); |
|---|
| 118 | 118 | } |
|---|
| 119 | 119 | |
|---|
| 120 | | static void GetUUID( UUID_t *p_uuid, uint8_t *p_buff ) |
|---|
| | 120 | static void GetUUID( UUID_t *p_uuid, const uint8_t *p_buff ) |
|---|
| 121 | 121 | { |
|---|
| 122 | 122 | memcpy( p_uuid, p_buff, 16 ); |
|---|
| … | … | |
| 166 | 166 | { |
|---|
| 167 | 167 | int i_read; |
|---|
| 168 | | uint8_t *p_peek; |
|---|
| | 168 | const uint8_t *p_peek; |
|---|
| 169 | 169 | |
|---|
| 170 | 170 | if( ( ( i_read = stream_Peek( p_stream, &p_peek, 32 ) ) < 8 ) ) |
|---|
| … | … | |
| 316 | 316 | p_box->i_type == FOURCC_free ) |
|---|
| 317 | 317 | { |
|---|
| 318 | | uint8_t *p_peek; |
|---|
| | 318 | const uint8_t *p_peek; |
|---|
| 319 | 319 | int i_read; |
|---|
| 320 | 320 | vlc_fourcc_t i_fcc; |
|---|