diff options
author | wm4 <wm4@nowhere> | 2012-10-23 22:17:21 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-24 21:56:35 +0200 |
commit | 3d98e8c674066809844cd35dfe02b28a07f91d77 (patch) | |
tree | b5b6fb3d0ed543ba2c051965379b13fe5f402d80 /sub/spudec.c | |
parent | a8824f12ddfe66585db43fb0f92d7c90b5bbd19d (diff) | |
download | mpv-3d98e8c674066809844cd35dfe02b28a07f91d77.tar.bz2 mpv-3d98e8c674066809844cd35dfe02b28a07f91d77.tar.xz |
options: remove --ffactor switch
This controlled the generation of the palette for DVD subs if no palette
was found. The option name and description is confusing, and it was
probably barely useful. Remove the option, and hardcode the behavior to
the option's default value.
Diffstat (limited to 'sub/spudec.c')
-rw-r--r-- | sub/spudec.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sub/spudec.c b/sub/spudec.c index d51f62c0fc..84b4113251 100644 --- a/sub/spudec.c +++ b/sub/spudec.c @@ -328,8 +328,8 @@ static void compute_palette(spudec_handle_t *this, packet_t *packet) start = 0x80; step = 0; } else { - start = this->font_start_level; - step = (0xF0-this->font_start_level)/(cused-1); + start = 72; + step = (0xF0-start)/(cused-1); } memset(used, 0, sizeof(used)); for (i=0; i<4; i++) { @@ -660,12 +660,6 @@ void spudec_get_indexed(void *this, struct mp_osd_res *dim, } } -void spudec_set_font_factor(void * this, double factor) -{ - spudec_handle_t *spu = this; - spu->font_start_level = (int)(0xF0-(0xE0*factor)); -} - static void spudec_parse_extradata(spudec_handle_t *this, uint8_t *extradata, int extradata_len) { |