diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-04-05 09:37:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-04-05 09:37:43 +0000 |
commit | 3cff4572ce7a5f0953b13531776794a581131fc1 (patch) | |
tree | 55c4d182ca651048d8c679ae07ec9769fadbce84 /libavcodec/snow.c | |
parent | 826de46ea306ee4a179dd4ad368bc4abb488db4c (diff) | |
download | ffmpeg-3cff4572ce7a5f0953b13531776794a581131fc1.tar.gz |
fixing lossless snow
Originally committed as revision 4107 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r-- | libavcodec/snow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 11cc4b7302..263918ed25 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -3434,7 +3434,7 @@ redo_frame: 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; } } } |