Changeset 17ccb7521f5bde43ad4fd1103536b33c4042b81a

Show
Ignore:
Timestamp:
04/24/08 19:15:42 (4 months ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1209057342 +0200
git-parent:

[bc9eac0a14cfa196d4e8514049f744740cb7a23d]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1208598084 +0200
Message:

Fix indentation after vlc_bool_t by bool replacement. Makes the file readible again.

Files:

Legend:

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

    r57bbabb r17ccb75  
    171171    uint8_t                 i_objectTypeIndication; 
    172172    uint8_t                 i_streamType; 
    173     bool              b_upStream; 
     173    bool                    b_upStream; 
    174174    uint32_t                i_bufferSizeDB; 
    175175    uint32_t                i_maxBitrate; 
     
    183183typedef struct 
    184184{ 
    185     bool              b_useAccessUnitStartFlag; 
    186     bool              b_useAccessUnitEndFlag; 
    187     bool              b_useRandomAccessPointFlag; 
    188     bool              b_useRandomAccessUnitsOnlyFlag; 
    189     bool              b_usePaddingFlag; 
    190     bool              b_useTimeStampsFlags; 
    191     bool              b_useIdleFlag; 
    192     bool              b_durationFlag; 
     185    bool                    b_useAccessUnitStartFlag; 
     186    bool                    b_useAccessUnitEndFlag; 
     187    bool                    b_useRandomAccessPointFlag; 
     188    bool                    b_useRandomAccessUnitsOnlyFlag; 
     189    bool                    b_usePaddingFlag; 
     190    bool                    b_useTimeStampsFlags; 
     191    bool                    b_useIdleFlag; 
     192    bool                    b_durationFlag; 
    193193    uint32_t                i_timeStampResolution; 
    194194    uint32_t                i_OCRResolution; 
     
    212212typedef struct 
    213213{ 
    214     bool              b_ok; 
     214    bool                    b_ok; 
    215215    uint16_t                i_es_id; 
    216216 
    217     bool              b_streamDependenceFlag; 
    218     bool              b_OCRStreamFlag; 
     217    bool                    b_streamDependenceFlag; 
     218    bool                    b_OCRStreamFlag; 
    219219    uint8_t                 i_streamPriority; 
    220220 
     
    231231typedef struct 
    232232{ 
    233     uint8_t                i_iod_label, i_iod_label_scope; 
     233    uint8_t                i_iod_label, i_iod_label_scope; 
    234234 
    235235    /* IOD */ 
     
    291291    int         i_pid; 
    292292 
    293     bool  b_seen; 
    294     bool  b_valid; 
     293    bool        b_seen; 
     294    bool        b_valid; 
    295295    int         i_cc;   /* countinuity counter */ 
    296296 
     
    325325 
    326326    /* */ 
    327     bool  b_es_id_pid; 
     327    bool        b_es_id_pid; 
    328328    csa_t       *csa; 
    329329    int         i_csa_pkt_size; 
    330     bool  b_silent; 
    331  
    332     bool  b_udp_out; 
     330    bool        b_silent; 
     331 
     332    bool        b_udp_out; 
    333333    int         fd; /* udp socket */ 
    334334    uint8_t     *buffer; 
    335335 
    336     bool  b_dvb_control; 
     336    bool        b_dvb_control; 
    337337    int         i_dvb_program; 
    338338    int64_t     i_dvb_start; 
     
    344344    FILE        *p_file;    /* filehandle */ 
    345345    uint64_t    i_write;    /* bytes written */ 
    346     bool  b_file_out; /* dump mode enabled */ 
     346    bool        b_file_out; /* dump mode enabled */ 
    347347 
    348348    /* */ 
    349     bool  b_meta; 
     349    bool        b_meta; 
    350350}; 
    351351 
     
    397397    ts_pid_t    *pat; 
    398398    const char  *psz_mode; 
    399     bool   b_append; 
    400     bool   b_topfield = false; 
     399    bool         b_append; 
     400    bool         b_topfield = false; 
    401401 
    402402    vlc_value_t  val; 
     
    952952    while( i_pos < i_data ) 
    953953    { 
    954         ts_pid_t    *p_pid;   /* point to a PID structure */ 
    955         bool b_payload; /* indicates a packet with payload */ 
    956         bool b_adaptation; /* adaptation field */ 
    957         int i_cc  = 0;        /* continuity counter */ 
     954        ts_pid_t *p_pid;   /* point to a PID structure */ 
     955        bool      b_payload; /* indicates a packet with payload */ 
     956        bool      b_adaptation; /* adaptation field */ 
     957        int       i_cc  = 0;    /* continuity counter */ 
    958958 
    959959        if( p_sys->buffer[i_pos] != 0x47 ) 
     
    10501050    for( i_pkt = 0; i_pkt < p_sys->i_ts_read; i_pkt++ ) 
    10511051    { 
    1052         bool  b_frame = false; 
     1052        bool         b_frame = false; 
    10531053        block_t     *p_pkt; 
    10541054        ts_pid_t    *p_pid; 
     
    17791779static bool GatherPES( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk ) 
    17801780{ 
    1781     const uint8_t    *p = p_bk->p_buffer; 
     1781    const uint8_t *p = p_bk->p_buffer; 
    17821782    const bool b_unit_start = p[1]&0x40; 
    17831783    const bool b_adaptation = p[3]&0x20; 
    17841784    const bool b_payload    = p[3]&0x10; 
    1785     const int        i_cc         = p[3]&0x0f;   /* continuity counter */ 
     1785    const int  i_cc         = p[3]&0x0f;   /* continuity counter */ 
    17861786    bool       b_discontinuity = false;/* discontinuity */ 
    17871787 
     
    20842084    int i; 
    20852085    int i_es_index; 
    2086     uint8_t     i_flags, i_iod_tag, byte1, byte2, byte3; 
     2086    uint8_t i_flags, i_iod_tag, byte1, byte2, byte3; 
    20872087    bool  b_url; 
    2088     int         i_iod_length; 
     2088    int   i_iod_length; 
    20892089 
    20902090    p_iod = malloc( sizeof( iod_descriptor_t ) );