Mercurial > libavcodec.hg
comparison ac3.c @ 10285:4ce987b92348 libavcodec
simplify 2 lines into 1 using FFMIN
author | jbr |
---|---|
date | Sun, 27 Sep 2009 04:57:36 +0000 |
parents | 38e05838efc0 |
children | 2bb4b0cda61e |
comparison
equal
deleted
inserted
replaced
10284:38e05838efc0 | 10285:4ce987b92348 |
---|---|
154 break; | 154 break; |
155 } | 155 } |
156 } | 156 } |
157 } | 157 } |
158 | 158 |
159 end1=bndend; | 159 end1 = FFMIN(bndend, 22); |
160 if (end1 > 22) end1=22; | |
161 | 160 |
162 for (bin = begin; bin < end1; bin++) { | 161 for (bin = begin; bin < end1; bin++) { |
163 if (!(is_lfe && bin == 6)) | 162 if (!(is_lfe && bin == 6)) |
164 lowcomp = calc_lowcomp(lowcomp, band_psd[bin], band_psd[bin+1], bin); | 163 lowcomp = calc_lowcomp(lowcomp, band_psd[bin], band_psd[bin+1], bin); |
165 | 164 |