mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
Fix forumla -> formula in comment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27483 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4445a58fd3
commit
c1751adcc1
4
vobsub.c
4
vobsub.c
@ -803,8 +803,8 @@ vobsub_parse_origin(vobsub_t *vob, const char *line)
|
||||
unsigned int vobsub_palette_to_yuv(unsigned int pal)
|
||||
{
|
||||
int r, g, b, y, u, v;
|
||||
// Palette in idx file is not rgb value, it was calculated by wrong forumla.
|
||||
// Here's reversed forumla of the one used to generate palette in idx file.
|
||||
// Palette in idx file is not rgb value, it was calculated by wrong formula.
|
||||
// Here's reversed formula of the one used to generate palette in idx file.
|
||||
r = pal >> 16 & 0xff;
|
||||
g = pal >> 8 & 0xff;
|
||||
b = pal & 0xff;
|
||||
|
Loading…
Reference in New Issue
Block a user