Revision 63b1866a libavcodec/ac3dsp.c

View differences:

libavcodec/ac3dsp.c
164 164
            if (e >= 24) {
165 165
                e = 24;
166 166
                coef[i] = 0;
167
            } else if (e < 0) {
168
                e = 0;
169
                coef[i] = av_clip(coef[i], -16777215, 16777215);
167 170
            }
168
            av_assert2(e >= 0);
169 171
        }
170 172
        exp[i] = e;
171 173
    }

Also available in: Unified diff