comparison libschroedingerenc.c @ 11682:5173cc26d42f libavcodec

schroenc: Set keyframe interval
author conrad
date Wed, 05 May 2010 21:02:45 +0000
parents 04c086666e50
children 83d14d771e80
comparison
equal deleted inserted replaced
11681:04c086666e50 11682:5173cc26d42f
151 151
152 if (avccontext->coder_type == FF_CODER_TYPE_VLC) 152 if (avccontext->coder_type == FF_CODER_TYPE_VLC)
153 schro_encoder_setting_set_double(p_schro_params->encoder, 153 schro_encoder_setting_set_double(p_schro_params->encoder,
154 "enable_noarith", 1); 154 "enable_noarith", 1);
155 } else { 155 } else {
156 schro_encoder_setting_set_double(p_schro_params->encoder,
157 "au_distance", avccontext->gop_size);
156 avccontext->has_b_frames = 1; 158 avccontext->has_b_frames = 1;
157 } 159 }
158 160
159 /* FIXME - Need to handle SCHRO_ENCODER_RATE_CONTROL_LOW_DELAY. */ 161 /* FIXME - Need to handle SCHRO_ENCODER_RATE_CONTROL_LOW_DELAY. */
160 if (avccontext->flags & CODEC_FLAG_QSCALE) { 162 if (avccontext->flags & CODEC_FLAG_QSCALE) {