diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-20 02:11:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-20 02:14:19 +0200 |
commit | 5358953cdfb8fe16e2d9d8cc5df4b417935c6bf2 (patch) | |
tree | 74b585102cc673d1e4016493fed97d93f1ac5385 /libavcodec/jpeg2000dwt.c | |
parent | 116e7d5418bcd984c65d289605d9658409172d5c (diff) | |
download | ffmpeg-5358953cdfb8fe16e2d9d8cc5df4b417935c6bf2.tar.gz |
avcodec/jpeg2000dwt: Fill array using 2d instead of 1d accesses
Avoids gcc warning
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeg2000dwt.c')
-rw-r--r-- | libavcodec/jpeg2000dwt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000dwt.c b/libavcodec/jpeg2000dwt.c index 4e7bfa12b4..e8b3e12387 100644 --- a/libavcodec/jpeg2000dwt.c +++ b/libavcodec/jpeg2000dwt.c @@ -659,7 +659,7 @@ int main(void) { for (i = 0; i < 40; i++) { 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]) continue; decomp_levels = av_lfg_get(&prng) % FF_DWT_MAX_DECLVLS; |