Showing the changes to libavcodec/aaccoder.c (1 of 1 file). Show all
Unified · Split
| @@ -878,7 +878,7 @@ static void search_for_quantizers_faac(AVCodecContext *avctx, AACEncContext *s, · 877 unmodified lines | |||
| 878 | } else { | 878 | } else { |
| 879 | for (w = 0; w < 8; w++) { | 879 | for (w = 0; w < 8; w++) { |
| 880 | const float *coeffs = sce->coeffs + w*128; | 880 | const float *coeffs = sce->coeffs + w*128; |
| 881 | start = 0; | 881 | curband = start = 0; |
| 882 | for (i = 0; i < 128; i++) { | 882 | for (i = 0; i < 128; i++) { |
| 883 | if (i - start >= sce->ics.swb_sizes[curband]) { | 883 | if (i - start >= sce->ics.swb_sizes[curband]) { |
| 884 | start += sce->ics.swb_sizes[curband]; | 884 | start += sce->ics.swb_sizes[curband]; |