summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-04-05 09:37:43 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-04-05 09:37:43 +0000
commit3cff4572ce7a5f0953b13531776794a581131fc1 (patch)
tree55c4d182ca651048d8c679ae07ec9769fadbce84 /libavcodec
parent826de46ea306ee4a179dd4ad368bc4abb488db4c (diff)
fixing lossless snow
Originally committed as revision 4107 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/snow.c2
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;
}
}
}