Skip to content

Commit 05269bf

Browse files
llyyrhaasn
authored andcommitted
shaders/deinterlacing: fix bwdif clamping range calculation
f was incorrectly computed using c instead of e Match the ffmpeg bwdif_vulkan shader: https://code.ffmpeg.org/FFmpeg/FFmpeg/src/branch/master/libavfilter/vulkan/bwdif.comp.glsl#L78
1 parent 05ac2cc commit 05269bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/shaders/deinterlacing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void pl_shader_deinterlace(pl_shader sh, const struct pl_deinterlace_source *src
293293
T bs = prev2[1] + next2[1]; \
294294
T fs = prev2[3] + next2[3]; \
295295
T b = (bs / 2.0) - c; \
296-
T f = (fs / 2.0) - c; \
296+
T f = (fs / 2.0) - e; \
297297
T dc = d - c; \
298298
T de = d - e; \
299299
T mmax = max(de, max(dc, min(b, f))); \

0 commit comments

Comments
 (0)