Skip to content

Remove negatives in front of 0 for subtitle seeking#17749

Open
amogusussy wants to merge 1 commit intompv-player:masterfrom
amogusussy:master
Open

Remove negatives in front of 0 for subtitle seeking#17749
amogusussy wants to merge 1 commit intompv-player:masterfrom
amogusussy:master

Conversation

@amogusussy
Copy link
Copy Markdown

If you seek to a subtitle delay of 0, the message has a negative in front of it, which you typically don't write in front of 0.

image

@na-na-hi
Copy link
Copy Markdown
Contributor

Commit does not fix the issue.

@ValeZAA
Copy link
Copy Markdown

ValeZAA commented Apr 16, 2026

I often see this in ffmpeg, and this is not considered a bug there. Floating point numbers have negative zero https://stackoverflow.com/questions/5095968/does-float-have-a-negative-zero-0f

@kasper93
Copy link
Copy Markdown
Member

Commit does not fix the issue.

Probably it doesn't, but the change still kinda make sense, why would we set OSD_REW for 0?

@N-R-K
Copy link
Copy Markdown
Contributor

N-R-K commented Apr 21, 2026

Floating point numbers have negative zero

IEEE has signed zero for specific reasons, it doesn't mean we need to show such nonsense on user facing interfaces. For example, we don't show the exact representation of floating values, only a rounded one up to N decimal.

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.

5 participants