const double fps= (double)s->frame_rate / FRAME_RATE_BASE;
const double fps= (double)s->avctx->frame_rate / (double)s->avctx->frame_rate_base;
static void update_rc_buffer(MpegEncContext *s, int frame_size){    RateControlContext *rcc= &s->rc_context;    const double fps= (double)s->frame_rate / FRAME_RATE_BASE;    const double buffer_size= s->avctx->rc_buffer_size;    const double min_rate= s->avctx->rc_min_rate/fps;    const double max_rate= s->avctx->rc_max_rate/fps;    if(buffer_size){        rcc->buffer_index-= frame_size;        if(rcc->buffer_index < buffer_size/2 /*FIXME /2 */ || min_rate==0){            rcc->buffer_index+= max_rate;            if(rcc->buffer_index >= buffer_size)                rcc->buffer_index= buffer_size-1;        }else{            rcc->buffer_index+= min_rate;        }                if(rcc->buffer_index < 0)            fprintf(stderr, "rc buffer underflow\n");        if(rcc->buffer_index >= s->avctx->rc_buffer_size)            fprintf(stderr, "rc buffer overflow\n");    }}