comparison ratecontrol.c @ 2628:511e3afc43e1 libavcodec

Ministry of English Composition, reporting for duty (and the word is "skipped", not "skiped"; "skiped" would rhyme with "hyped")
author melanson
date Sun, 24 Apr 2005 17:21:11 +0000
parents 36d70fbb31c5
children ef44d24680d1
comparison
equal deleted inserted replaced
2627:bf158d23bbcc 2628:511e3afc43e1
77 if(i<=0 || i>=INT_MAX / sizeof(RateControlEntry)) 77 if(i<=0 || i>=INT_MAX / sizeof(RateControlEntry))
78 return -1; 78 return -1;
79 rcc->entry = (RateControlEntry*)av_mallocz(i*sizeof(RateControlEntry)); 79 rcc->entry = (RateControlEntry*)av_mallocz(i*sizeof(RateControlEntry));
80 rcc->num_entries= i; 80 rcc->num_entries= i;
81 81
82 /* init all to skiped p frames (with b frames we might have a not encoded frame at the end FIXME) */ 82 /* init all to skipped p frames (with b frames we might have a not encoded frame at the end FIXME) */
83 for(i=0; i<rcc->num_entries; i++){ 83 for(i=0; i<rcc->num_entries; i++){
84 RateControlEntry *rce= &rcc->entry[i]; 84 RateControlEntry *rce= &rcc->entry[i];
85 rce->pict_type= rce->new_pict_type=P_TYPE; 85 rce->pict_type= rce->new_pict_type=P_TYPE;
86 rce->qscale= rce->new_qscale=FF_QP2LAMBDA * 2; 86 rce->qscale= rce->new_qscale=FF_QP2LAMBDA * 2;
87 rce->misc_bits= s->mb_num + 10; 87 rce->misc_bits= s->mb_num + 10;