obs-filters: Misc code cleanups detected by PVS Studio

This commit is contained in:
Richard Stanway
2020-05-23 23:44:06 +02:00
parent ea7bb7a7cd
commit 79981889c6
3 changed files with 3 additions and 6 deletions

View File

@@ -195,9 +195,7 @@ static void scale_filter_tick(void *data, float seconds)
} else {
if (new_aspect > old_aspect) {
filter->cx_out = (int)(cy_f * new_aspect);
filter->cy_out = cy;
} else {
filter->cx_out = cx;
filter->cy_out = (int)(cx_f / new_aspect);
}
}