diff options
Diffstat (limited to 'libmpcodecs/vf_scale.c')
-rw-r--r-- | libmpcodecs/vf_scale.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index f49153d843..8d786e771c 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -257,6 +257,7 @@ static int config(struct vf_instance_s* vf, vf->priv->palette[4*i+0]=4*(i&3)*21; vf->priv->palette[4*i+1]=4*((i>>2)&7)*9; vf->priv->palette[4*i+2]=4*((i>>5)&7)*9; + vf->priv->palette[4*i+3]=0; } break; } case IMGFMT_BGR4: @@ -267,6 +268,7 @@ static int config(struct vf_instance_s* vf, vf->priv->palette[4*i+0]=4*(i&1)*63; vf->priv->palette[4*i+1]=4*((i>>1)&3)*21; vf->priv->palette[4*i+2]=4*((i>>3)&1)*63; + vf->priv->palette[4*i+3]=0; } break; } } |