Revision 405469ce

View differences:

libavcodec/ratecontrol.c
658 658
        if(expected_bits < all_available_bits) avg_quantizer[P_TYPE]-= step;
659 659
//printf("%f %lld %f\n", expected_bits, all_available_bits, avg_quantizer[P_TYPE]);
660 660
    }
661
printf("qp_i:%f, qp_p:%f, qp_b:%f\n", avg_quantizer[I_TYPE],avg_quantizer[P_TYPE],avg_quantizer[B_TYPE]);
661
//printf("qp_i:%f, qp_p:%f, qp_b:%f\n", avg_quantizer[I_TYPE],avg_quantizer[P_TYPE],avg_quantizer[B_TYPE]);
662 662

  
663 663
    for(i=0; i<5; i++){
664 664
        available_bits[i]= const_bits[i] + complexity[i]/avg_quantizer[i];
......
723 723
            RateControlEntry *rce= &rcc->entry[i];
724 724
            double bits;
725 725
            rce->new_qscale= modify_qscale(s, rce, blured_qscale[i], i);
726
            bits= qp2bits(rce, rce->new_qscale);
726
            bits= qp2bits(rce, rce->new_qscale) + rce->mv_bits + rce->misc_bits;
727 727
//printf("%d %f\n", rce->new_bits, blured_qscale[i]);
728 728
            update_rc_buffer(s, bits);
729 729

  

Also available in: Unified diff