Changeset d1d3dc1d109110bf68cb048c429f6f05a3839200

Show
Ignore:
Timestamp:
05/01/08 21:11:47 (2 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1209669107 +0300
git-parent:

[1379ab26f381310cd1fd34664d73a28cc9bf6eb1]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1209669107 +0300
Message:

Remove I64C as well

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_common.h

    r1379ab2 rd1d3dc1  
    863863#endif 
    864864 
    865 /* 64 bits integer constant suffix */ 
    866 #define I64C(x)  INT64_C(x) 
    867  
    868865#if defined(WIN32) || defined(UNDER_CE) 
    869866/* win32, cl and icl support */ 
  • modules/access/cdda.c

    r8aa3a9c rd1d3dc1  
    548548        i_size = ( p_sectors[i+1] - p_sectors[i] ) * 
    549549                   (int64_t)CDDA_DATA_SIZE; 
    550         i_length += I64C(1000000) * i_size / 44100 / 4  ; 
     550        i_length += INT64_C(1000000) * i_size / 44100 / 4  ; 
    551551    } 
    552552 
  • modules/access/cdda/info.c

    r7bc28ee rd1d3dc1  
    908908        t->i_size = i_track_frames * (int64_t) CDIO_CD_FRAMESIZE_RAW; 
    909909 
    910         t->i_length = I64C(1000000) * t->i_size / CDDA_FREQUENCY_SAMPLE / 4; 
     910        t->i_length = INT64_C(1000000) * t->i_size / CDDA_FREQUENCY_SAMPLE / 4; 
    911911 
    912912    if( p_item ) 
     
    940940            t->i_size = i_track_frames * (int64_t) CDIO_CD_FRAMESIZE_RAW; 
    941941 
    942             t->i_length = I64C(1000000) * t->i_size 
     942            t->i_length = INT64_C(1000000) * t->i_size 
    943943          / CDDA_FREQUENCY_SAMPLE / 4; 
    944944 
  • modules/access/dc1394.c

    r449fd28 rd1d3dc1  
    751751 
    752752    p_block->i_pts = p_block->i_dts = 
    753                         mdate() - I64C(1000000) * (mtime_t)i_correct / 
     753                        mdate() - INT64_C(1000000) * (mtime_t)i_correct / 
    754754                        2 / p_sys->channels / p_sys->i_sample_rate; 
    755755    return p_block; 
  • modules/access/dvb/http.c

    r449fd28 rd1d3dc1  
    256256    vlc_mutex_lock( &p_sys->httpd_mutex ); 
    257257 
    258     p_sys->i_httpd_timeout = mdate() + I64C(3000000); /* 3 s */ 
     258    p_sys->i_httpd_timeout = mdate() + INT64_C(3000000); /* 3 s */ 
    259259    p_sys->psz_request = psz_request; 
    260260    p_sys->b_request_frontend_info = true; 
  • modules/access/file.c

    rf94a2f9 rd1d3dc1  
    354354        case ACCESS_GET_PTS_DELAY: 
    355355            pi_64 = (int64_t*)va_arg( args, int64_t * ); 
    356             *pi_64 = var_GetInteger( p_access, "file-caching" ) * I64C(1000); 
     356            *pi_64 = var_GetInteger( p_access, "file-caching" ) * INT64_C(1000); 
    357357            break; 
    358358 
  • modules/access/ftp.c

    r97897ee rd1d3dc1  
    550550            pi_64 = (int64_t*)va_arg( args, int64_t * ); 
    551551            var_Get( p_access, "ftp-caching", &val ); 
    552             *pi_64 = (int64_t)var_GetInteger( p_access, "ftp-caching" ) * I64C(1000); 
     552            *pi_64 = (int64_t)var_GetInteger( p_access, "ftp-caching" ) * INT64_C(1000); 
    553553            break; 
    554554 
  • modules/access/gnomevfs.c

    rf94a2f9 rd1d3dc1  
    404404            pi_64 = (int64_t*)va_arg( args, int64_t * ); 
    405405            *pi_64 = var_GetInteger( p_access, 
    406                                         "gnomevfs-caching" ) * I64C(1000); 
     406                                        "gnomevfs-caching" ) * INT64_C(1000); 
    407407            break; 
    408408 
  • modules/access/mms/mmsh.c

    r97897ee rd1d3dc1  
    272272        case ACCESS_GET_PTS_DELAY: 
    273273            pi_64 = (int64_t*)va_arg( args, int64_t * ); 
    274             *pi_64 = (int64_t)var_GetInteger( p_access, "mms-caching" ) * I64C(1000); 
     274            *pi_64 = (int64_t)var_GetInteger( p_access, "mms-caching" ) * INT64_C(1000); 
    275275            break; 
    276276 
  • modules/access/mms/mmstu.c

    r97897ee rd1d3dc1  
    261261            pi_64 = (int64_t*)va_arg( args, int64_t * ); 
    262262            var_Get( p_access, "mms-caching", &val ); 
    263             *pi_64 = (int64_t)var_GetInteger( p_access, "mms-caching" ) * I64C(1000); 
     263            *pi_64 = (int64_t)var_GetInteger( p_access, "mms-caching" ) * INT64_C(1000); 
    264264            break; 
    265265 
  • modules/access/rtmp/access.c

    rf94a2f9 rd1d3dc1  
    468468        case ACCESS_GET_PTS_DELAY: 
    469469            pi_64 = (int64_t*)va_arg( args, int64_t * ); 
    470             *pi_64 = var_GetInteger( p_access, "rtmp-caching" ) * I64C(1000); 
     470            *pi_64 = var_GetInteger( p_access, "rtmp-caching" ) * INT64_C(1000); 
    471471            break; 
    472472 
  • modules/access/tcp.c

    rf94a2f9 rd1d3dc1  
    189189        case ACCESS_GET_PTS_DELAY: 
    190190            pi_64 = (int64_t*)va_arg( args, int64_t * ); 
    191             *pi_64 = (int64_t)var_GetInteger( p_access, "tcp-caching" ) * I64C(1000); 
     191            *pi_64 = (int64_t)var_GetInteger( p_access, "tcp-caching" ) * INT64_C(1000); 
    192192            break; 
    193193 
  • modules/access/v4l.c

    r449fd28 rd1d3dc1  
    14161416 
    14171417    p_block->i_pts = p_block->i_dts = 
    1418         mdate() - I64C(1000000) * (mtime_t)i_correct / 
     1418        mdate() - INT64_C(1000000) * (mtime_t)i_correct / 
    14191419        2 / ( p_sys->b_stereo ? 2 : 1) / p_sys->i_sample_rate; 
    14201420 
  • modules/access/v4l2/v4l2.c

    r0f79e20 rd1d3dc1  
    16471647    /* Timestamp */ 
    16481648    p_block->i_pts = p_block->i_dts = 
    1649         mdate() - I64C(1000000) * (mtime_t)i_correct / 
     1649        mdate() - INT64_C(1000000) * (mtime_t)i_correct / 
    16501650        2 / ( p_sys->b_stereo ? 2 : 1) / p_sys->i_sample_rate; 
    16511651 
  • modules/audio_output/directx.c

    r449fd28 rd1d3dc1  
    10441044        /* Detect underruns */ 
    10451045        if( l_queued && mtime - last_time > 
    1046             I64C(1000000) * l_queued / p_aout->output.output.i_rate ) 
     1046            INT64_C(1000000) * l_queued / p_aout->output.output.i_rate ) 
    10471047        { 
    10481048            msg_Dbg( p_aout, "detected underrun!" ); 
     
    10591059        { 
    10601060            aout_buffer_t *p_buffer = aout_OutputNextBuffer( p_aout, 
    1061                 mtime + I64C(1000000) * (i * FRAME_SIZE + l_queued) / 
     1061                mtime + INT64_C(1000000) * (i * FRAME_SIZE + l_queued) / 
    10621062                p_aout->output.output.i_rate, b_sleek ); 
    10631063 
     
    10721072        /* Sleep a reasonable amount of time */ 
    10731073        l_queued += (i * FRAME_SIZE); 
    1074         msleep( I64C(1000000) * l_queued / p_aout->output.output.i_rate / 2 ); 
     1074        msleep( INT64_C(1000000) * l_queued / p_aout->output.output.i_rate / 2 ); 
    10751075    } 
    10761076 
  • modules/codec/dmo/dmo.c

    r97897ee rd1d3dc1  
    10591059    vih.rcTarget = vih.rcSource; 
    10601060 
    1061     vih.AvgTimePerFrame = I64C(10000000) / 25; //FIXME 
     1061    vih.AvgTimePerFrame = INT64_C(10000000) / 25; //FIXME 
    10621062 
    10631063    dmo_type.majortype = MEDIATYPE_Video; 
  • modules/codec/ffmpeg/encoder.c

    r97897ee rd1d3dc1  
    909909 
    910910        /* FIXME, 3-2 pulldown is not handled correctly */ 
    911         p_block->i_length = I64C(1000000) * 
     911        p_block->i_length = INT64_C(1000000) * 
    912912            p_enc->fmt_in.video.i_frame_rate_base / 
    913913                p_enc->fmt_in.video.i_frame_rate; 
  • modules/codec/ffmpeg/mux.c

    r97897ee rd1d3dc1  
    364364    if( p_data->i_pts > 0 ) 
    365365        pkt.pts = p_data->i_pts * p_stream->time_base.den / 
    366             I64C(1000000) / p_stream->time_base.num; 
     366            INT64_C(1000000) / p_stream->time_base.num; 
    367367    if( p_data->i_dts > 0 ) 
    368368        pkt.dts = p_data->i_dts * p_stream->time_base.den / 
    369             I64C(1000000) / p_stream->time_base.num; 
     369            INT64_C(1000000) / p_stream->time_base.num; 
    370370 
    371371    /* this is another hack to prevent libavformat from triggering the "non monotone timestamps" check in avformat/utils.c */ 
    372372    p_stream->cur_dts = ( p_data->i_dts * p_stream->time_base.den / 
    373             I64C(1000000) / p_stream->time_base.num ) - 1; 
     373            INT64_C(1000000) / p_stream->time_base.num ) - 1; 
    374374 
    375375    if( av_write_frame( p_sys->oc, &pkt ) < 0 ) 
  • modules/codec/ffmpeg/video.c

    r449fd28 rd1d3dc1  
    465465 
    466466    if( !p_dec->b_pace_control && (p_sys->i_late_frames > 0) && 
    467         (mdate() - p_sys->i_late_frames_start > I64C(5000000)) ) 
     467        (mdate() - p_sys->i_late_frames_start > INT64_C(5000000)) ) 
    468468    { 
    469469        if( p_sys->i_pts ) 
     
    677677                p_dec->fmt_in.video.i_frame_rate_base > 0 ) 
    678678            { 
    679                 p_sys->i_pts += I64C(1000000) * 
     679                p_sys->i_pts += INT64_C(1000000) * 
    680680                    (2 + p_sys->p_ff_pic->repeat_pict) * 
    681681                    p_dec->fmt_in.video.i_frame_rate_base * 
     
    685685            else if( p_sys->p_context->time_base.den > 0 ) 
    686686            { 
    687                 p_sys->i_pts += I64C(1000000) * 
     687                p_sys->i_pts += INT64_C(1000000) * 
    688688                    (2 + p_sys->p_ff_pic->repeat_pict) * 
    689689                    p_sys->p_context->time_base.num * 
  • modules/codec/flac.c

    r449fd28 rd1d3dc1  
    10161016    { 
    10171017        i_sample_number = read_utf8( &p_buf[i_header++], &i_read ); 
    1018         if( i_sample_number == I64C(0xffffffffffffffff) ) return 0; 
     1018        if( i_sample_number == INT64_C(0xffffffffffffffff) ) return 0; 
    10191019    } 
    10201020    else 
    10211021    { 
    10221022        i_sample_number = read_utf8( &p_buf[i_header++], &i_read ); 
    1023         if( i_sample_number == I64C(0xffffffffffffffff) ) return 0; 
     1023        if( i_sample_number == INT64_C(0xffffffffffffffff) ) return 0; 
    10241024 
    10251025        if( p_sys->b_stream_info ) 
     
    11061106    } 
    11071107    else { 
    1108         return I64C(0xffffffffffffffff); 
     1108        return INT64_C(0xffffffffffffffff); 
    11091109    } 
    11101110 
     
    11131113        if( !(p_buf[j] & 0x80) || (p_buf[j] & 0x40) ) /* 10xxxxxx */ 
    11141114        { 
    1115             return I64C(0xffffffffffffffff); 
     1115            return INT64_C(0xffffffffffffffff); 
    11161116        } 
    11171117        i_result <<= 6; 
  • modules/codec/rawvideo.c

    r449fd28 rd1d3dc1  
    249249 
    250250    /* Date management: 1 frame per packet */ 
    251     p_sys->i_pts += ( I64C(1000000) * 1.0 / 25 /*FIXME*/ ); 
     251    p_sys->i_pts += ( INT64_C(1000000) * 1.0 / 25 /*FIXME*/ ); 
    252252    *pp_block = NULL; 
    253253 
  • modules/codec/theora.c

    r449fd28 rd1d3dc1  
    444444 
    445445    /* Date management */ 
    446     p_sys->i_pts += ( I64C(1000000) * p_sys->ti.fps_denominator / 
     446    p_sys->i_pts += ( INT64_C(1000000) * p_sys->ti.fps_denominator / 
    447447                      p_sys->ti.fps_numerator ); /* 1 frame per packet */ 
    448448 
  • modules/codec/x264.c

    rd578086 rd1d3dc1  
    13381338 
    13391339    /* This isn't really valid for streams with B-frames */ 
    1340     p_block->i_length = I64C(1000000) * 
     1340    p_block->i_length = INT64_C(1000000) * 
    13411341        p_enc->fmt_in.video.i_frame_rate_base / 
    13421342            p_enc->fmt_in.video.i_frame_rate; 
  • modules/control/http/http.c

    r97897ee rd1d3dc1  
    443443        sprintf( position, "%d" , (int)((val.f_float) * 100.0)); 
    444444        var_Get( p_sys->p_input, "time", &val); 
    445         sprintf( time, "%"PRIi64, (int64_t)val.i_time / I64C(1000000) ); 
     445        sprintf( time, "%"PRIi64, (int64_t)val.i_time / INT64_C(1000000) ); 
    446446        var_Get( p_sys->p_input, "length", &val); 
    447         sprintf( length, "%"PRIi64, (int64_t)val.i_time / I64C(1000000) ); 
     447        sprintf( length, "%"PRIi64, (int64_t)val.i_time / INT64_C(1000000) ); 
    448448 
    449449        var_Get( p_sys->p_input, "state", &val ); 
  • modules/demux/a52.c

    r2ea3b5f rd1d3dc1  
    228228            { 
    229229                p_sys->i_mux_rate = 
    230                     p_block_out->i_buffer * I64C(1000000)/p_block_out->i_length; 
     230                    p_block_out->i_buffer * INT64_C(1000000)/p_block_out->i_length; 
    231231            } 
    232232 
  • modules/demux/dts.c

    r2ea3b5f rd1d3dc1  
    209209            { 
    210210                p_sys->i_mux_rate = 
    211                     p_block_out->i_buffer * I64C(1000000) / p_block_out->i_length; 
     211                    p_block_out->i_buffer * INT64_C(1000000) / p_block_out->i_length; 
    212212            } 
    213213 
  • modules/demux/flac.c

    r2ea3b5f rd1d3dc1  
    317317 
    318318    /* XXX We do exact seek if it's not too far away(45s) */ 
    319     if( i_delta_time < 45*I64C(1000000) ) 
     319    if( i_delta_time < 45*INT64_C(1000000) ) 
    320320    { 
    321321        if( stream_Seek( p_demux->s, p_sys->seekpoint[i]->i_byte_offset+p_sys->i_data_pos ) ) 
     
    463463    ParseStreamInfo( p_demux, &i_sample_rate, &i_sample_count,  *pp_streaminfo, *pi_streaminfo ); 
    464464    if( i_sample_rate > 0 ) 
    465         p_sys->i_length = i_sample_count * I64C(1000000)/i_sample_rate; 
     465        p_sys->i_length = i_sample_count * INT64_C(1000000)/i_sample_rate; 
    466466 
    467467    /* Be sure we have seekpoint 0 */ 
     
    517517 
    518518    *pi_rate = GetDWBE(&p_data[i_skip+4+6]) >> 12; 
    519     *pi_count = GetQWBE(&p_data[i_skip+4+6]) &  ((I64C(1)<<36)-1); 
     519    *pi_count = GetQWBE(&p_data[i_skip+4+6]) &  ((INT64_C(1)<<36)-1); 
    520520} 
    521521 
     
    540540 
    541541        s = vlc_seekpoint_New(); 
    542         s->i_time_offset = i_sample * I64C(1000000)/i_sample_rate; 
     542        s->i_time_offset = i_sample * INT64_C(1000000)/i_sample_rate; 
    543543        s->i_byte_offset = GetQWBE( &p_data[4+18*i+8] ); 
    544544 
  • modules/demux/live555.cpp

    r1379ab2 rd1d3dc1  
    13831383        case DEMUX_SET_PAUSE_STATE: 
    13841384        { 
    1385             double d_npt = (double) p_sys->i_npt / I64C(1000000); 
     1385            double d_npt = (double) p_sys->i_npt / INT64_C(1000000); 
    13861386            int i; 
    13871387 
  • modules/demux/mkv.cpp

    r97897ee rd1d3dc1  
    48694869        { 
    48704870            KaxChapterTimeStart &start =*(KaxChapterTimeStart*)l; 
    4871             chapters.i_start_time = uint64( start ) / I64C(1000); 
     4871            chapters.i_start_time = uint64( start ) / INT64_C(1000); 
    48724872 
    48734873            msg_Dbg( &sys.demuxer, "|   |   |   |   + ChapterTimeStart: %lld", chapters.i_start_time ); 
     
    48764876        { 
    48774877            KaxChapterTimeEnd &end =*(KaxChapterTimeEnd*)l; 
    4878             chapters.i_end_time = uint64( end ) / I64C(1000); 
     4878            chapters.i_end_time = uint64( end ) / INT64_C(1000); 
    48794879 
    48804880            msg_Dbg( &sys.demuxer, "|   |   |   |   + ChapterTimeEnd: %lld", chapters.i_end_time ); 
     
    50815081    { 
    50825082        /* update the duration of the segment according to the sum of all sub chapters */ 
    5083         i_dur = stored_editions[i_default_edition]->Duration() / I64C(1000); 
     5083        i_dur = stored_editions[i_default_edition]->Duration() / INT64_C(1000); 
    50845084        if (i_dur > 0) 
    50855085            i_duration = i_dur; 
  • modules/demux/mp4/libmp4.c

    r97897ee rd1d3dc1  
    155155 
    156156    /* date begin at 1 jan 1904 */ 
    157     i_date += ((I64C(1904) * 365) + 17) * 24 * 60 * 60; 
     157    i_date += ((INT64_C(1904) * 365) + 17) * 24 * 60 * 60; 
    158158 
    159159    i_day = i_date / ( 60*60*24); 
  • modules/demux/mp4/mp4.c

    r97897ee rd1d3dc1  
    230230    } 
    231231 
    232     return I64C(1000000) * i_dts / p_track->i_timescale; 
     232    return INT64_C(1000000) * i_dts / p_track->i_timescale; 
    233233} 
    234234 
     
    245245    { 
    246246        if( i_sample < ck->p_sample_count_pts[i_index] ) 
    247             return ck->p_sample_offset_pts[i_index] * I64C(1000000) / 
     247            return ck->p_sample_offset_pts[i_index] * INT64_C(1000000) / 
    248248                   (int64_t)p_track->i_timescale; 
    249249 
     
    254254static inline int64_t MP4_GetMoviePTS(demux_sys_t *p_sys ) 
    255255{ 
    256     return I64C(1000000) * p_sys->i_time / p_sys->i_timescale; 
     256    return INT64_C(1000000) * p_sys->i_time / p_sys->i_timescale; 
    257257} 
    258258 
     
    17551755        /* now calculate i_start for this elst */ 
    17561756        /* offset */ 
    1757         i_start -= p_track->i_elst_time * I64C(1000000) / p_sys->i_timescale; 
     1757        i_start -= p_track->i_elst_time * INT64_C(1000000) / p_sys->i_timescale; 
    17581758        if( i_start < 0 ) 
    17591759        { 
     
    20532053                     elst->i_media_time[i] >= 0 ? 
    20542054                     (int64_t)(elst->i_media_time[i] * 1000 / p_track->i_timescale) : 
    2055                      I64C(-1), 
     2055                     INT64_C(-1), 
    20562056                     elst->i_media_rate_integer[i], 
    20572057                     elst->i_media_rate_fraction[i] ); 
  • modules/demux/mpc.c

    r57bbabb rd1d3dc1  
    227227    p_data->i_buffer = i_ret * sizeof(MPC_SAMPLE_FORMAT) * p_sys->info.channels; 
    228228    p_data->i_dts = p_data->i_pts = 
    229             1 + I64C(1000000) * p_sys->i_position / p_sys->info.sample_freq; 
     229            1 + INT64_C(1000000) * p_sys->i_position / p_sys->info.sample_freq; 
    230230 
    231231    es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_data->i_dts ); 
     
    258258        case DEMUX_GET_LENGTH: 
    259259            pi64 = (int64_t*)va_arg( args, int64_t * ); 
    260             *pi64 = I64C(1000000) * p_sys->info.pcm_samples / 
     260            *pi64 = INT64_C(1000000) * p_sys->info.pcm_samples / 
    261261                        p_sys->info.sample_freq; 
    262262            return VLC_SUCCESS; 
     
    273273        case DEMUX_GET_TIME: 
    274274            pi64 = (int64_t*)va_arg( args, int64_t * ); 
    275             *pi64 = I64C(1000000) * p_sys->i_position / 
     275            *pi64 = INT64_C(1000000) * p_sys->i_position / 
    276276                        p_sys->info.sample_freq; 
    277277            return VLC_SUCCESS; 
  • modules/demux/mpeg/m4a.c

    r57bbabb rd1d3dc1  
    165165 
    166166            p_sys->i_pts = p_block_out->i_pts; 
    167             if( p_sys->i_pts > M4A_PTS_START + I64C(500000) ) 
     167            if( p_sys->i_pts > M4A_PTS_START + INT64_C(500000) ) 
    168168                p_sys->i_bitrate_avg = 
    169                     8*I64C(1000000)*p_sys->i_bytes/(p_sys->i_pts-M4A_PTS_START); 
     169                    8*INT64_C(1000000)*p_sys->i_bytes/(p_sys->i_pts-M4A_PTS_START); 
    170170 
    171171            p_sys->i_bytes += p_block_out->i_buffer; 
     
    208208            i_ret == VLC_SUCCESS && p_sys->i_bitrate_avg > 0 ) 
    209209        { 
    210             int64_t i_time = I64C(8000000) * stream_Tell(p_demux->s) / 
     210            int64_t i_time = INT64_C(8000000) * stream_Tell(p_demux->s) / 
    211211                p_sys->i_bitrate_avg; 
    212212 
  • modules/demux/mpeg/mpga.c

    r57bbabb rd1d3dc1  
    245245        p_sys->i_xing_frame_samples ) 
    246246    { 
    247         p_sys->i_bitrate_avg = p_sys->i_xing_bytes * I64C(8) * 
     247        p_sys->i_bitrate_avg = p_sys->i_xing_bytes * INT64_C(8) * 
    248248            p_sys->p_packetizer->fmt_out.audio.i_rate / 
    249249            p_sys->i_xing_frames / p_sys->i_xing_frame_samples; 
     
    390390                (i_query == DEMUX_SET_POSITION || i_query == DEMUX_SET_TIME) ) 
    391391            { 
    392                 int64_t i_time = I64C(8000000) * stream_Tell(p_demux->s) / 
     392                int64_t i_time = INT64_C(8000000) * stream_Tell(p_demux->s) / 
    393393                    p_sys->i_bitrate_avg; 
    394394 
  • modules/demux/ogg.c

    r97897ee rd1d3dc1  
    446446        if( p_stream->fmt.i_codec != VLC_FOURCC( 't','h','e','o' ) ) 
    447447        { 
    448             p_stream->i_pcr = p_oggpacket->granulepos * I64C(1000000) 
     448            p_stream->i_pcr = p_oggpacket->granulepos * INT64_C(1000000) 
    449449                              / p_stream->f_rate; 
    450450        } 
     
    456456              ( iframe << p_stream->i_theora_keyframe_granule_shift ); 
    457457 
    458             p_stream->i_pcr = ( iframe + pframe ) * I64C(1000000) 
     458            p_stream->i_pcr = ( iframe + pframe ) * INT64_C(1000000) 
    459459                              / p_stream->f_rate; 
    460460        } 
     
    470470        if( p_stream->fmt.i_cat == VIDEO_ES ) 
    471471            /* 1 frame per packet */ 
    472             p_stream->i_interpolated_pcr += (I64C(1000000) / p_stream->f_rate); 
     472            p_stream->i_interpolated_pcr += (INT64_C(1000000) / p_stream->f_rate); 
    473473        else if( p_stream->fmt.i_bitrate ) 
    474474            p_stream->i_interpolated_pcr += 
    475                 ( p_oggpacket->bytes * I64C(1000000) / 
     475                ( p_oggpacket->bytes * INT64_C(1000000) / 
    476476                  p_stream->fmt.i_bitrate / 8 ); 
    477477    } 
  • modules/demux/playlist/m3u.c

    r7bc28ee rd1d3dc1  
    144144                parseEXTINF( psz_parse, &psz_artist, &psz_name, &i_parsed_duration ); 
    145145                if( i_parsed_duration >= 0 ) 
    146                     i_duration = i_parsed_duration * I64C(1000000); 
     146                    i_duration = i_parsed_duration * INT64_C(1000000); 
    147147                if( psz_name ) 
    148148                    psz_name = strdup( psz_name ); 
  • modules/demux/rawdv.c

    r2ea3b5f rd1d3dc1  
    328328    if( !p_sys->b_hurry_up ) 
    329329    { 
    330         p_sys->i_pcr += ( I64C(1000000) / p_sys->f_rate ); 
     330        p_sys->i_pcr += ( INT64_C(1000000) / p_sys->f_rate ); 
    331331    } 
    332332 
  • modules/demux/rawvid.c

    r57bbabb rd1d3dc1  
    381381    es_out_Send( p_demux->out, p_sys->p_es_video, p_block ); 
    382382 
    383     p_sys->i_pcr += ( I64C(1000000) / p_sys->f_fps ); 
     383    p_sys->i_pcr += ( INT64_C(1000000) / p_sys->f_fps ); 
    384384 
    385385    return 1; 
  • modules/demux/ts.c

    r97897ee rd1d3dc1  
    11911191        { 
    11921192            if( pi_length ) 
    1193                 *pi_length = p_sys->i_dvb_length * I64C(1000000); 
     1193                *pi_length = p_sys->i_dvb_length * INT64_C(1000000); 
    11941194            if( pi_time ) 
    1195                 *pi_time   = (t - p_sys->i_dvb_start) * I64C(1000000); 
     1195                *pi_time   = (t - p_sys->i_dvb_start) * INT64_C(1000000); 
    11961196            return VLC_SUCCESS; 
    11971197        } 
     
    12561256            if( p_sys->i_mux_rate > 0 ) 
    12571257            { 
    1258                 *pi64 = I64C(1000000) * ( stream_Size( p_demux->s ) / 50 ) / 
     1258                *pi64 = INT64_C(1000000) * ( stream_Size( p_demux->s ) / 50 ) / 
    12591259                        p_sys->i_mux_rate; 
    12601260                return VLC_SUCCESS; 
  • modules/demux/tta.c

    r57bbabb rd1d3dc1  
    195195    p_data = stream_Block( p_demux->s, p_sys->pi_seektable[p_sys->i_currentframe] ); 
    196196    if( p_data == NULL ) return 0; 
    197     p_data->i_dts = p_data->i_pts = (int64_t)(1 + I64C(1000000) * p_sys->i_currentframe) * TTA_FRAMETIME; 
     197    p_data->i_dts = p_data->i_pts = (int64_t)(1 + INT64_C(1000000) * p_sys->i_currentframe) * TTA_FRAMETIME; 
    198198 
    199199    p_sys->i_currentframe++; 
     
    249249        case DEMUX_GET_LENGTH: 
    250250            pi64 = (int64_t*)va_arg( args, int64_t * ); 
    251             *pi64 = I64C(1000000) * p_sys->i_totalframes * TTA_FRAMETIME; 
     251            *pi64 = INT64_C(1000000) * p_sys->i_totalframes * TTA_FRAMETIME; 
    252252            return VLC_SUCCESS; 
    253253 
    254254        case DEMUX_GET_TIME: 
    255255            pi64 = (int64_t*)va_arg( args, int64_t * ); 
    256             *pi64 = I64C(1000000) * p_sys->i_currentframe * TTA_FRAMETIME; 
     256            *pi64 = INT64_C(1000000) * p_sys->i_currentframe * TTA_FRAMETIME; 
    257257            return VLC_SUCCESS; 
    258258