Changeset 3a6f1b598c7c31dc8171479cce28f8ca12aeb9b7

Show
Ignore:
Timestamp:
05/20/08 10:23:05 (4 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1211271785 +0200
git-parent:

[b26f5a25af04ccca0d539d0711f5ff9316064641]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1211183563 +0200
Message:

Cosmetics.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/codec/ffmpeg/encoder.c

    r6300760 r3a6f1b5  
    8787    vlc_mutex_t     lock; 
    8888    vlc_cond_t      cond; 
    89     bool      b_work, b_done; 
     89    bool            b_work, b_done; 
    9090}; 
    9191 
     
    113113    mtime_t i_buggy_pts_detect; 
    114114    mtime_t i_last_pts; 
    115     bool b_inited; 
     115    bool    b_inited; 
    116116 
    117117    /* 
     
    129129    int        i_qmax; 
    130130    int        i_hq; 
    131     bool b_strict_rc; 
     131    bool       b_strict_rc; 
    132132    int        i_rc_buffer_size; 
    133133    float      f_rc_buffer_aggressivity; 
    134     bool b_pre_me; 
    135     bool b_hurry_up; 
    136     bool b_interlace, b_interlace_me; 
     134    bool       b_pre_me; 
     135    bool       b_hurry_up; 
     136    bool       b_interlace, b_interlace_me; 
    137137    float      f_i_quant_factor; 
    138138    int        i_noise_reduction; 
    139     bool b_mpeg4_matrix; 
    140     bool b_trellis; 
     139    bool       b_mpeg4_matrix; 
     140    bool       b_trellis; 
    141141    int        i_quality; /* for VBR */ 
    142142    float      f_lumi_masking, f_dark_masking, f_p_masking, f_border_masking; 
     
    156156    "trellis", "qscale", "strict", "lumi-masking", "dark-masking", 
    157157    "p-masking", "border-masking", "luma-elim-threshold", 
    158     "chroma-elim-threshold",  
     158    "chroma-elim-threshold", 
    159159#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4) 
    160      "aac-profile",  
     160     "aac-profile", 
    161161#endif 
    162162     NULL 
     
    238238 
    239239    /* Initialization must be done before avcodec_find_encoder() */ 
    240     InitLibavcodec(p_this); 
     240    InitLibavcodec( p_this ); 
    241241 
    242242    p_codec = avcodec_find_encoder( i_codec_id ); 
     
    530530            p_context->bit_rate_tolerance = p_sys->i_vtolerance; 
    531531 
    532         /* usually if someone sets bitrate, he likes more to get that bitrate over quality  
    533          * should help 'normal' user to get asked bitrate 
     532        /* usually if someone sets bitrate, he likes more to get that bitrate 
     533         * over quality should help 'normal' user to get asked bitrate 
    534534         */ 
    535535        if( p_enc->fmt_out.i_bitrate > 0 && p_sys->i_qmax == 0 && p_sys->i_qmin == 0 ) 
     
    656656                vlc_mutex_unlock( lock ); 
    657657                msg_Err( p_enc, "cannot open encoder" ); 
    658                 intf_UserFatal( p_enc, false, _("Streaming / Transcoding failed"), 
     658                intf_UserFatal( p_enc, false, 
     659                                _("Streaming / Transcoding failed"), 
    659660                                _("VLC could not open the encoder.") ); 
    660661                free( p_sys ); 
     
    10221023        } 
    10231024 
    1024         i_out = avcodec_encode_audio( p_sys->p_context, (uint8_t *)p_sys->p_buffer_out, 
     1025        i_out = avcodec_encode_audio( p_sys->p_context, 
     1026                                      (uint8_t *)p_sys->p_buffer_out, 
    10251027                                      2 * AVCODEC_MAX_AUDIO_FRAME_SIZE, 
    10261028                                      p_samples );