[vlc-commits] ogg: simplify opposite test as the other if

Steve Lhomme git at videolan.org
Tue Sep 18 17:07:36 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu May 31 16:40:03 2018 +0200| [21a525fa5695c01df4bf43f3d4f15735b1230d05] | committer: Steve Lhomme

ogg: simplify opposite test as the other if

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

 modules/demux/oggseek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/oggseek.c b/modules/demux/oggseek.c
index 5f0758e3b5..bd3e6e90f2 100644
--- a/modules/demux/oggseek.c
+++ b/modules/demux/oggseek.c
@@ -702,7 +702,7 @@ static int64_t OggBisectSearchByTime( demux_t *p_demux, logical_stream_t *p_stre
                     bestlower = current;
                 i_start_pos = current.i_pos;
             }
-            else if ( current.i_timestamp > i_targettime )
+            else
             {
                 if ( lowestupper.i_timestamp == VLC_TICK_INVALID ||
                      current.i_timestamp < lowestupper.i_timestamp )



More information about the vlc-commits mailing list