summaryrefslogtreecommitdiffstats
path: root/libass/ass_parse.c
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2015-05-23 02:35:21 +0300
committerOleg Oshmyan <chortos@inbox.lv>2015-05-25 00:16:57 +0300
commit3bbd058c6d5c8b953fd80658ae696a16ff928896 (patch)
treeb0d482e13b09f3e7274b2a51a43a24cb8eb1ff8f /libass/ass_parse.c
parent546f5004a4d7e4c8688ffce591763b53afc792cf (diff)
downloadlibass-3bbd058c6d5c8b953fd80658ae696a16ff928896.tar.bz2
libass-3bbd058c6d5c8b953fd80658ae696a16ff928896.tar.xz
Apply fade only when the fade alpha is positive (like VSFilter)
Diffstat (limited to 'libass/ass_parse.c')
-rw-r--r--libass/ass_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libass/ass_parse.c b/libass/ass_parse.c
index 1d97a31..63bce2b 100644
--- a/libass/ass_parse.c
+++ b/libass/ass_parse.c
@@ -207,11 +207,11 @@ inline uint32_t mult_alpha(uint32_t a, uint32_t b)
* \brief Calculate alpha value by piecewise linear function
* Used for \fad, \fade implementation.
*/
-static unsigned
+static int
interpolate_alpha(long long now, long long t1, long long t2, long long t3,
- long long t4, unsigned a1, unsigned a2, unsigned a3)
+ long long t4, int a1, int a2, int a3)
{
- unsigned a;
+ int a;
double cf;
if (now < t1) {