Changeset 982c2c891aa4dc440fe65009993004b52534b577
- Timestamp:
- 08/03/06 18:58:10
(2 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1154624290 +0000
- git-parent:
[2d824acd426d7f4c5169083ce9966b5ed4e15da3]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1154624290 +0000
- Message:
Fix a bunch of warnings and errors
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8f973a0 |
r982c2c8 |
|
| 726 | 726 | f = config_GetFloat( p_intf, m->param1 ); |
|---|
| 727 | 727 | div = lldiv( f * 1000000 , 1000000 ); |
|---|
| 728 | | sprintf( value, I64Fd".%06u", div.quot, |
|---|
| | 728 | sprintf( value, "%lld.%06u", div.quot, |
|---|
| 729 | 729 | (unsigned int)div.rem ); |
|---|
| 730 | 730 | break; |
|---|
| refae654 |
r982c2c8 |
|
| 699 | 699 | char psz_value[20]; |
|---|
| 700 | 700 | lldiv_t value = lldiv( val.f_float * 1000000, 1000000 ); |
|---|
| 701 | | snprintf( psz_value, sizeof(psz_value), I64Fd".%06u", |
|---|
| | 701 | snprintf( psz_value, sizeof(psz_value), "%lld.%06u", |
|---|
| 702 | 702 | value.quot, (unsigned int)value.rem ); |
|---|
| 703 | 703 | E_(SSPush)( st, psz_value ); |
|---|
| … | … | |
| 796 | 796 | lldiv_t value = lldiv( config_GetFloat( p_intf, psz_variable ) |
|---|
| 797 | 797 | * 1000000, 1000000 ); |
|---|
| 798 | | snprintf( psz_string, sizeof(psz_string), I64Fd".%06u", |
|---|
| | 798 | snprintf( psz_string, sizeof(psz_string), "%lld.%06u", |
|---|
| 799 | 799 | value.quot, (unsigned int)value.rem ); |
|---|
| 800 | 800 | E_(SSPush)( st, psz_string ); |
|---|
| … | … | |
| 989 | 989 | _(VLC_META_INFO_CAT), _(VLC_META_TITLE) ); |
|---|
| 990 | 990 | if( psz_val == NULL ) |
|---|
| 991 | | psz_val == strdup( p_item->psz_name ); |
|---|
| | 991 | psz_val = strdup( p_item->psz_name ); |
|---|
| 992 | 992 | } |
|---|
| 993 | 993 | else if( !strcmp( psz_meta, "ALBUM" ) ) |
|---|
| r2d824ac |
r982c2c8 |
|
| 68 | 68 | if( ( i_read > 0 )&&(p_peek[0] ) ) \ |
|---|
| 69 | 69 | { \ |
|---|
| 70 | | p_str = calloc( sizeof( char ), __MIN( strlen( p_peek ), i_read )+1);\ |
|---|
| 71 | | memcpy( p_str, p_peek, __MIN( strlen( p_peek ), i_read ) ); \ |
|---|
| 72 | | p_str[__MIN( strlen( p_peek ), i_read )] = 0; \ |
|---|
| | 70 | p_str = calloc( sizeof( char ), __MIN( strlen( (char*)p_peek ), i_read )+1);\ |
|---|
| | 71 | memcpy( p_str, p_peek, __MIN( strlen( (char*)p_peek ), i_read ) ); \ |
|---|
| | 72 | p_str[__MIN( strlen( (char*)p_peek ), i_read )] = 0; \ |
|---|
| 73 | 73 | p_peek += strlen( p_str ) + 1; \ |
|---|
| 74 | 74 | i_read -= strlen( p_str ) + 1; \ |
|---|
| … | … | |
| 81 | 81 | |
|---|
| 82 | 82 | #define MP4_READBOX_ENTER( MP4_Box_data_TYPE_t ) \ |
|---|
| 83 | | int64_t i_read = p_box->i_size; \ |
|---|
| | 83 | uint64_t i_read = p_box->i_size; \ |
|---|
| 84 | 84 | uint8_t *p_peek, *p_buff; \ |
|---|
| 85 | | i_read = p_box->i_size; \ |
|---|
| | 85 | int i_actually_read; \ |
|---|
| 86 | 86 | if( !( p_peek = p_buff = malloc( i_read ) ) ) \ |
|---|
| 87 | 87 | { \ |
|---|
| 88 | 88 | return( 0 ); \ |
|---|
| 89 | 89 | } \ |
|---|
| 90 | | if( stream_Read( p_stream, p_peek, i_read ) < i_read )\ |
|---|
| | 90 | i_actually_read = stream_Read( p_stream, p_peek, i_read ); \ |
|---|
| | 91 | if( i_actually_read < 0 || (uint64_t)i_actually_read < i_read )\ |
|---|
| 91 | 92 | { \ |
|---|
| 92 | 93 | free( p_buff ); \ |
|---|
| … | … | |
| 818 | 819 | } |
|---|
| 819 | 820 | |
|---|
| 820 | | static int MP4_ReadLengthDescriptor( uint8_t **pp_peek, int64_t *i_read ) |
|---|
| | 821 | static int MP4_ReadLengthDescriptor( uint8_t **pp_peek, uint64_t *i_read ) |
|---|
| 821 | 822 | { |
|---|
| 822 | 823 | unsigned int i_b; |
|---|
| … | … | |
| 2071 | 2072 | static int MP4_ReadBox_0xa9xxx( stream_t *p_stream, MP4_Box_t *p_box ) |
|---|
| 2072 | 2073 | { |
|---|
| 2073 | | int16_t i_length, i_dummy; |
|---|
| | 2074 | uint16_t i_length, i_dummy; |
|---|
| 2074 | 2075 | |
|---|
| 2075 | 2076 | MP4_READBOX_ENTER( MP4_Box_data_0xa9xxx_t ); |
|---|
| r2cb472d |
r982c2c8 |
|
| 350 | 350 | uint32_t i_flags; |
|---|
| 351 | 351 | |
|---|
| 352 | | unsigned char *psz_location; |
|---|
| | 352 | char *psz_location; |
|---|
| 353 | 353 | |
|---|
| 354 | 354 | } MP4_Box_data_url_t; |
|---|
| … | … | |
| 359 | 359 | uint32_t i_flags; |
|---|
| 360 | 360 | |
|---|
| 361 | | unsigned char *psz_name; |
|---|
| 362 | | unsigned char *psz_location; |
|---|
| | 361 | char *psz_name; |
|---|
| | 362 | char *psz_location; |
|---|
| 363 | 363 | |
|---|
| 364 | 364 | } MP4_Box_data_urn_t; |
|---|
| … | … | |
| 652 | 652 | unsigned char i_language[3]; |
|---|
| 653 | 653 | |
|---|
| 654 | | unsigned char *psz_notice; |
|---|
| | 654 | char *psz_notice; |
|---|
| 655 | 655 | } MP4_Box_data_cprt_t; |
|---|
| 656 | 656 | |
|---|
| rf0ddd61 |
r982c2c8 |
|
| 100 | 100 | while( (psz_line = stream_ReadLine( p_demux->s )) ) |
|---|
| 101 | 101 | { |
|---|
| 102 | | playlist_item_t *p_item; |
|---|
| 103 | 102 | char **ppsz_options = NULL; |
|---|
| 104 | 103 | int i, i_options = 0; |
|---|
| r1c98d75 |
r982c2c8 |
|
| 67 | 67 | { |
|---|
| 68 | 68 | demux_t *p_demux = (demux_t *)p_this; |
|---|
| 69 | | int i_size; |
|---|
| 70 | 69 | byte_t *p_peek; |
|---|
| 71 | 70 | |
|---|
| r2d824ac |
r982c2c8 |
|
| 396 | 396 | ( p_sys->b_adult || strcmp( psz_rt, "NC17" ) ) ) ) ) |
|---|
| 397 | 397 | { |
|---|
| 398 | | playlist_item_t *p_item; |
|---|
| 399 | 398 | char *psz_mrl = NULL; |
|---|
| 400 | 399 | if( psz_rt || psz_load ) |
|---|
| r3580902 |
r982c2c8 |
|
| 755 | 755 | |
|---|
| 756 | 756 | { |
|---|
| 757 | | char *p_in_buffer, *p_out_buffer; |
|---|
| | 757 | char *p_out_buffer; |
|---|
| | 758 | const char *p_in_buffer = psz_string; |
|---|
| 758 | 759 | size_t i_in_bytes, i_out_bytes, i_out_bytes_left, i_ret; |
|---|
| 759 | 760 | i_in_bytes = strlen( psz_string ); |
|---|
| 760 | 761 | i_out_bytes = i_in_bytes * sizeof( uint32_t ); |
|---|
| 761 | 762 | i_out_bytes_left = i_out_bytes; |
|---|
| 762 | | p_in_buffer = psz_string; |
|---|
| 763 | 763 | p_out_buffer = (char *)psz_unicode; |
|---|
| 764 | 764 | i_ret = vlc_iconv( iconv_handle, &p_in_buffer, &i_in_bytes, |
|---|
| r6f7916e |
r982c2c8 |
|
| 450 | 450 | 1000 ); |
|---|
| 451 | 451 | fprintf( p_intf->p_sys->p_rrd, |
|---|
| 452 | | I64Fi":"I64Fd".%03u:"I64Fd".%03u:"I64Fd".%03u\n", |
|---|
| | 452 | I64Fi":%lld.%03u:%lld.%03u:%lld.%03u\n", |
|---|
| 453 | 453 | p_intf->p_sys->last_update/1000000, |
|---|
| 454 | 454 | din.quot, (unsigned int)din.rem, |
|---|
| r6f3e4d5 |
r982c2c8 |
|
| 1292 | 1292 | { |
|---|
| 1293 | 1293 | lldiv_t d = lldiv( p_media->i_length / 1000, 1000 ); |
|---|
| 1294 | | p += sprintf( p, "a=range:npt=0-"I64Fd".%03u\r\n", d.quot, |
|---|
| | 1294 | p += sprintf( p, "a=range:npt=0-%lld.%03u\r\n", d.quot, |
|---|
| 1295 | 1295 | (unsigned)d.rem ); |
|---|
| 1296 | 1296 | } |
|---|
| r2cb472d |
r982c2c8 |
|
| 48 | 48 | |
|---|
| 49 | 49 | vlc_bool_t b_hscale; /* horizontal scaling type */ |
|---|
| 50 | | unsigned int i_vscale; /* vertical scaling type */ |
|---|
| | 50 | int i_vscale; /* vertical scaling type */ |
|---|
| 51 | 51 | unsigned int i_x, i_y; /* horizontal and vertical indexes */ |
|---|
| 52 | 52 | unsigned int i_real_y; /* y % 4 */ |
|---|