mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-10 00:30:14 +00:00
avcodec/jpeg2000dwt: Fill array using 2d instead of 1d accesses
Avoids gcc warning Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
116e7d5418
commit
5358953cdf
@ -659,7 +659,7 @@ int main(void) {
|
|||||||
|
|
||||||
for (i = 0; i < 40; i++) {
|
for (i = 0; i < 40; i++) {
|
||||||
for (j=0; j<4; j++)
|
for (j=0; j<4; j++)
|
||||||
border[0][j] = av_lfg_get(&prng) % MAX_W;
|
border[j>>1][j&1] = av_lfg_get(&prng) % MAX_W;
|
||||||
if (border[0][0] >= border[0][1] || border[1][0] >= border[1][1])
|
if (border[0][0] >= border[0][1] || border[1][0] >= border[1][1])
|
||||||
continue;
|
continue;
|
||||||
decomp_levels = av_lfg_get(&prng) % FF_DWT_MAX_DECLVLS;
|
decomp_levels = av_lfg_get(&prng) % FF_DWT_MAX_DECLVLS;
|
||||||
|
Loading…
Reference in New Issue
Block a user