vlc | branch: master | Laurent Aimar <[email protected]> | Sun Jun 5 16:18:54 2011 +0200| [df2679806c7561bf1d59ad6b59b37d2276236347] | committer: Laurent Aimar
Fade for 1/4 of the display time. It is looking more natural. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df2679806c7561bf1d59ad6b59b37d2276236347 --- src/video_output/vout_subpictures.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c index 12b1522..f46de3e 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) / _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
