[FFmpeg-cvslog] avcodec/jpeg2000dwt: increase the number of test iterations
Michael Niedermayer
git at videolan.org
Sun Jun 21 14:00:03 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 21 13:13:00 2015 +0200| [aa594415a0a293472bda2ed8ed1cd7f3693eeb86] | committer: Michael Niedermayer
avcodec/jpeg2000dwt: increase the number of test iterations
the code had too little coverage
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aa594415a0a293472bda2ed8ed1cd7f3693eeb86
---
libavcodec/jpeg2000dwt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/jpeg2000dwt.c b/libavcodec/jpeg2000dwt.c
index 314a274..8d95eb2 100644
--- a/libavcodec/jpeg2000dwt.c
+++ b/libavcodec/jpeg2000dwt.c
@@ -657,7 +657,7 @@ int main(void) {
for (i = 0; i<MAX_W * MAX_W; i++)
array[i] = ref[i] = av_lfg_get(&prng) % 2048;
- for (i = 0; i < 40; i++) {
+ for (i = 0; i < 100; i++) {
for (j=0; j<4; j++)
border[j>>1][j&1] = av_lfg_get(&prng) % MAX_W;
if (border[0][0] >= border[0][1] || border[1][0] >= border[1][1])
More information about the ffmpeg-cvslog
mailing list