Revision 322aa1e2 ffmpeg.c

View differences:

ffmpeg.c
2926 2926
        AVCodecContext *enc = st->codec;
2927 2927
        if(thread_count>1)
2928 2928
            avcodec_thread_init(enc, thread_count);
2929
        enc->thread_count= thread_count;
2930 2929
        switch(enc->codec_type) {
2931 2930
        case CODEC_TYPE_AUDIO:
2932 2931
            set_context_opts(enc, avcodec_opts[CODEC_TYPE_AUDIO], AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM);
......
3136 3135
        if(inter_matrix)
3137 3136
            video_enc->inter_matrix = inter_matrix;
3138 3137

  
3139
        video_enc->thread_count = thread_count;
3140 3138
        p= video_rc_override_string;
3141 3139
        for(i=0; p; i++){
3142 3140
            int start, end, q;
......
3242 3240
            audio_enc->flags |= CODEC_FLAG_QSCALE;
3243 3241
            audio_enc->global_quality = st->quality = FF_QP2LAMBDA * audio_qscale;
3244 3242
        }
3245
        audio_enc->thread_count = thread_count;
3246 3243
        audio_enc->channels = audio_channels;
3247 3244
        audio_enc->sample_fmt = audio_sample_fmt;
3248 3245
        audio_enc->channel_layout = channel_layout;

Also available in: Unified diff