Mercurial > libavcodec.hg
comparison ratecontrol.c @ 1455:c4539ef4d8cb libavcodec
removed warnings
author | bellard |
---|---|
date | Tue, 09 Sep 2003 22:59:16 +0000 |
parents | d58fa7cc6008 |
children | 010f76d07a27 |
comparison
equal
deleted
inserted
replaced
1454:8b6e5cca1d37 | 1455:c4539ef4d8cb |
---|---|
600 br_compensation= (s->bit_rate_tolerance - diff)/s->bit_rate_tolerance; | 600 br_compensation= (s->bit_rate_tolerance - diff)/s->bit_rate_tolerance; |
601 if(br_compensation<=0.0) br_compensation=0.001; | 601 if(br_compensation<=0.0) br_compensation=0.001; |
602 | 602 |
603 var= pict_type == I_TYPE ? pic->mb_var_sum : pic->mc_mb_var_sum; | 603 var= pict_type == I_TYPE ? pic->mb_var_sum : pic->mc_mb_var_sum; |
604 | 604 |
605 short_term_q = 0; /* avoid warning */ | |
605 if(s->flags&CODEC_FLAG_PASS2){ | 606 if(s->flags&CODEC_FLAG_PASS2){ |
606 if(pict_type!=I_TYPE) | 607 if(pict_type!=I_TYPE) |
607 assert(pict_type == rce->new_pict_type); | 608 assert(pict_type == rce->new_pict_type); |
608 | 609 |
609 q= rce->new_qscale / br_compensation; | 610 q= rce->new_qscale / br_compensation; |