avcodec/ratecontrol: silence "warning: expected_bits may be used uninitialized in this function"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							parent
							
								
									9c49d5908d
								
							
						
					
					
						commit
						f099cdaba3
					
				| @ -920,7 +920,7 @@ static int init_pass2(MpegEncContext *s) | |||||||
|     double rate_factor          = 0; |     double rate_factor          = 0; | ||||||
|     double step; |     double step; | ||||||
|     const int filter_size = (int)(a->qblur * 4) | 1; |     const int filter_size = (int)(a->qblur * 4) | 1; | ||||||
|     double expected_bits; |     double expected_bits = 0; // init to silence gcc warning
 | ||||||
|     double *qscale, *blurred_qscale, qscale_sum; |     double *qscale, *blurred_qscale, qscale_sum; | ||||||
| 
 | 
 | ||||||
|     /* find complexity & const_bits & decide the pict_types */ |     /* find complexity & const_bits & decide the pict_types */ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user