Mercurial > libavcodec.hg
changeset 2595:6b385f3e07a3 libavcodec
fixing lossless snow
author | michael |
---|---|
date | Tue, 05 Apr 2005 09:37:43 +0000 |
parents | 5357b214eda0 |
children | 3e90a8cfddc6 |
files | snow.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/snow.c Tue Apr 05 01:35:22 2005 +0000 +++ b/snow.c Tue Apr 05 09:37:43 2005 +0000 @@ -3434,7 +3434,7 @@ if(s->qlog == LOSSLESS_QLOG){ for(y=0; y<h; y++){ for(x=0; x<w; x++){ - s->spatial_dwt_buffer[y*w + x]= (s->spatial_dwt_buffer[y*w + x] + (1<<(FRAC_BITS-1)))>>FRAC_BITS; + s->spatial_dwt_buffer[y*w + x]= (s->spatial_dwt_buffer[y*w + x] + (1<<(FRAC_BITS-1))-1)>>FRAC_BITS; } } }