avcodec/aacenc: don't redundantly re-compute max sfb
Remove an unneeded inner loop in adjust_frame_information that had no effect, the loop body can be run only once and will compute the same max sfb.
This commit is contained in:
		
							parent
							
								
									31327c2d07
								
							
						
					
					
						commit
						a9a69a5a31
					
				| @ -538,11 +538,9 @@ static void adjust_frame_information(ChannelElement *cpe, int chans) | |||||||
|         maxsfb = 0; |         maxsfb = 0; | ||||||
|         cpe->ch[ch].pulse.num_pulse = 0; |         cpe->ch[ch].pulse.num_pulse = 0; | ||||||
|         for (w = 0; w < ics->num_windows; w += ics->group_len[w]) { |         for (w = 0; w < ics->num_windows; w += ics->group_len[w]) { | ||||||
|             for (w2 =  0; w2 < ics->group_len[w]; w2++) { |             for (cmaxsfb = ics->num_swb; cmaxsfb > 0 && cpe->ch[ch].zeroes[w*16+cmaxsfb-1]; cmaxsfb--) | ||||||
|                 for (cmaxsfb = ics->num_swb; cmaxsfb > 0 && cpe->ch[ch].zeroes[w*16+cmaxsfb-1]; cmaxsfb--) |                 ; | ||||||
|                     ; |             maxsfb = FFMAX(maxsfb, cmaxsfb); | ||||||
|                 maxsfb = FFMAX(maxsfb, cmaxsfb); |  | ||||||
|             } |  | ||||||
|         } |         } | ||||||
|         ics->max_sfb = maxsfb; |         ics->max_sfb = maxsfb; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user