diff mbox series

[FFmpeg-devel,5/6] avcodec/tests/snowenc: Fix 2nd test

Message ID 20230324002540.3227-5-michael@niedermayer.cc
State Accepted
Commit 163013c72452621624f634c706824c77222b77c5
Headers show
Series [FFmpeg-devel,1/6] avcodec/tests/snowenc: unbreak DWT tests | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch

Commit Message

Michael Niedermayer March 24, 2023, 12:25 a.m. UTC
---
 libavcodec/tests/snowenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Michael Niedermayer March 25, 2023, 8:53 p.m. UTC | #1
On Fri, Mar 24, 2023 at 01:25:39AM +0100, Michael Niedermayer wrote:
> ---
>  libavcodec/tests/snowenc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

will apply

[...]
diff mbox series

Patch

diff --git a/libavcodec/tests/snowenc.c b/libavcodec/tests/snowenc.c
index 19635899d9..37198cd4e3 100644
--- a/libavcodec/tests/snowenc.c
+++ b/libavcodec/tests/snowenc.c
@@ -93,14 +93,14 @@  int main(void){
                 int w= width  >> (s.spatial_decomposition_count-level);
                 int h= height >> (s.spatial_decomposition_count-level);
                 int stride= width  << (s.spatial_decomposition_count-level);
-                DWTELEM *buf= buffer[0];
+                IDWTELEM *buf= obuffer;
                 int64_t error=0;
 
                 if(orientation&1) buf+=w;
                 if(orientation>1) buf+=stride>>1;
 
                 memset(obuffer, 0, sizeof(short)*width*height);
-                buf[w/2 + h/2*stride]= 256*256;
+                buf[w/2 + h/2*stride]= 8*256;
                 ff_spatial_idwt(obuffer, s.temp_idwt_buffer, width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count);
                 for(y=0; y<height; y++){
                     for(x=0; x<width; x++){