History

aacenc: fix the side calculation in search_for_ms

Young Han Lee committed 15 years ago

Commit 92efa2b1 parent 66f608a1 file · +1 −1Browse files

Showing the changes to libavcodec/aaccoder.c (1 of 1 file). Show all

Unified · Split

libavcodec/aaccoder.c+1−1
@@ -1057,7 +1057,7 @@ static void search_for_ms(AACEncContext *s, ChannelElement *cpe, · 1056 unmodified lines
1057 for (i = 0; i < sce0->ics.swb_sizes[g]; i++) {1057 for (i = 0; i < sce0->ics.swb_sizes[g]; i++) {
1058 M[i] = (sce0->coeffs[start+w2*128+i]1058 M[i] = (sce0->coeffs[start+w2*128+i]
1059 + sce1->coeffs[start+w2*128+i]) * 0.5;1059 + sce1->coeffs[start+w2*128+i]) * 0.5;
1060 S[i] = sce0->coeffs[start+w2*128+i]1060 S[i] = M[i]
1061 - sce1->coeffs[start+w2*128+i];1061 - sce1->coeffs[start+w2*128+i];
1062 }1062 }
1063 abs_pow34_v(L34, sce0->coeffs+start+w2*128, sce0->ics.swb_sizes[g]);1063 abs_pow34_v(L34, sce0->coeffs+start+w2*128, sce0->ics.swb_sizes[g]);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t