[vlc-commits] subsdelay: use __MIN() to make the code more obvious

Steve Lhomme git at videolan.org
Tue Sep 18 16:42:37 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 17:43:50 2018 +0200| [db82abe388853e0a65dd196501894dc918c5c647] | committer: Steve Lhomme

subsdelay: use __MIN() to make the code more obvious

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db82abe388853e0a65dd196501894dc918c5c647
---

 modules/spu/subsdelay.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/spu/subsdelay.c b/modules/spu/subsdelay.c
index 4e06788427..5e23dc6c9b 100644
--- a/modules/spu/subsdelay.c
+++ b/modules/spu/subsdelay.c
@@ -882,10 +882,7 @@ static void SubsdelayEnforceDelayRules( filter_t *p_filter )
 
     for( int i = 0; i < i_count - i_overlap; i++ )
     {
-        if( p_list[i]->i_new_stop > p_list[i + i_overlap]->p_source->i_start )
-        {
-            p_list[i]->i_new_stop = p_list[i + i_overlap]->p_source->i_start;
-        }
+        p_list[i]->i_new_stop = __MIN(p_list[i]->i_new_stop, p_list[i + i_overlap]->p_source->i_start);
     }
 
     /* finally - update all */



More information about the vlc-commits mailing list