Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miscellaneous cosmetic fixes #12438

Merged
merged 3 commits into from
Sep 21, 2023
Merged

miscellaneous cosmetic fixes #12438

merged 3 commits into from
Sep 21, 2023

Conversation

llyyr
Copy link
Contributor

@llyyr llyyr commented Sep 20, 2023

Mostly to silence clangd, but the sd_ass integer division is actually a bug fix for subtitles with unknown durations

common/msg_control.h Outdated Show resolved Hide resolved
@Traneptora
Copy link
Member

What does forward-declaring mp_log accomplish, exactly?

@llyyr
Copy link
Contributor Author

llyyr commented Sep 20, 2023

What does forward-declaring mp_log accomplish, exactly?

"Declaration of [...] will not be visible outside of this function" is the clang warning, I think this is purely cosmetic since mp_log ends up being included anyway.

video/out/filter_kernels.c Outdated Show resolved Hide resolved
@haasn
Copy link
Member

haasn commented Sep 20, 2023

PR title is misleading, changing integer division to floating point division is NOT a cosmetic change. The integer truncation (i.e., rounding down) may have been an intentional feature of the original code.

@llyyr
Copy link
Contributor Author

llyyr commented Sep 20, 2023

I'll drop the integer division changes for now and thoroughly test if they were intended or not. I'm pretty sure the sub one at least is a bug fix, but I'll do it in another PR later.

@Dudemanguy Dudemanguy merged commit 27f0a35 into mpv-player:master Sep 21, 2023
13 checks passed
@llyyr llyyr deleted the misc-fixes branch September 18, 2024 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants