Skip to content

Commit

Permalink
renderer: properly clamp tscale blur calculation
Browse files Browse the repository at this point in the history
This accidentally sharpened the frame mixer when the source fps was
below monitor fps.
  • Loading branch information
haasn committed Oct 17, 2023
1 parent 7ca8418 commit fd2addf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3309,7 +3309,7 @@ bool pl_render_image_mix(pl_renderer rr, const struct pl_frame_mix *images,
for (int i = 1; i < images->num_frames; i++) {
if (images->timestamps[i] >= 0.0 && images->timestamps[i - 1] < 0) {
float frame_dur = images->timestamps[i] - images->timestamps[i - 1];
if (!params->skip_anti_aliasing)
if (images->vsync_duration > frame_dur && !params->skip_anti_aliasing)
mixer.blur *= images->vsync_duration / frame_dur;
break;
}
Expand Down

0 comments on commit fd2addf

Please sign in to comment.