aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2023-03-24 00:48:56 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2023-03-26 15:30:31 +0200
commit037c7a2eac66e144c5e12dfaa335e9e98ef87e5f (patch)
tree358a23ccabca06bc55aaff1dc48cc8f8304b44e8
parent06dfb4fef2c8f85c066331c91d8987149b769a1b (diff)
downloadffmpeg-037c7a2eac66e144c5e12dfaa335e9e98ef87e5f.tar.gz
avcodec/tests/snowenc: Fix 2nd test
(cherry picked from commit 163013c72452621624f634c706824c77222b77c5) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/tests/snowenc.c4
1 files changed, 2 insertions, 2 deletions
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++){