From df2679806c7561bf1d59ad6b59b37d2276236347 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sun, 5 Jun 2011 16:18:54 +0200 Subject: [PATCH] Fade for 1/4 of the display time. It is looking more natural. --- src/video_output/vout_subpictures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c index 12b15223e8..f46de3ec57 100644 --- a/src/video_output/vout_subpictures.c +++ b/src/video_output/vout_subpictures.c @@ -925,7 +925,7 @@ static void SpuRenderRegion(spu_t *spu, dst->p_picture = picture_Hold(region_picture); int fade_alpha = 255; if (subpic->b_fade) { - mtime_t fade_start = (subpic->i_stop + subpic->i_start) / 2; + mtime_t fade_start = subpic->i_start + 3 * (subpic->i_stop - subpic->i_start) / 4; if (fade_start <= render_date && fade_start < subpic->i_stop) fade_alpha = 255 * (subpic->i_stop - render_date) / -- 2.11.4.GIT