[vlc-commits] subsdelay: make obvious code more obvious
Steve Lhomme
git at videolan.org
Tue Sep 18 16:42:35 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 17:41:58 2018 +0200| [2ca1778da7e98167e8c0b491b85e4aa99966cfef] | committer: Steve Lhomme
subsdelay: make obvious code more obvious
There are only 3 modes, the first one has returned already, the second falls back
to the third one.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ca1778da7e98167e8c0b491b85e4aa99966cfef
---
modules/spu/subsdelay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/spu/subsdelay.c b/modules/spu/subsdelay.c
index 18ee42d916..c5a53ad73e 100644
--- a/modules/spu/subsdelay.c
+++ b/modules/spu/subsdelay.c
@@ -1189,7 +1189,7 @@ static int64_t SubsdelayEstimateDelay( filter_t *p_filter, subsdelay_heap_entry_
i_mode = SUBSDELAY_MODE_RELATIVE_SOURCE_DELAY;
}
- if( i_mode == SUBSDELAY_MODE_RELATIVE_SOURCE_DELAY )
+ if( likely(i_mode == SUBSDELAY_MODE_RELATIVE_SOURCE_DELAY) )
{
return (int64_t)( p_sys->f_factor * ( p_entry->p_source->i_stop - p_entry->p_source->i_start ) );
}
More information about the vlc-commits
mailing list