]> git.nihav.org Git - nihav.git/commitdiff
realmedia/rv40dsp: fix strong deblock filter clipping
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 23 Mar 2020 18:07:17 +0000 (19:07 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 23 Mar 2020 18:07:17 +0000 (19:07 +0100)
nihav-realmedia/src/codecs/rv40dsp.rs

index dce273a74c7a3d5edadce6f2da8c1008d4d216c4..403208e401153d9af12929a9513410eba70a683b 100644 (file)
@@ -380,7 +380,7 @@ fn sfilter(a: i16, b: i16, c: i16, d: i16, e: i16, dither: i16, clip: bool, lims
         } else if val > c + lims {
             c + lims
         } else {
-            c
+            val
         }
     } else {
         val