[vlc-commits] demux: ts: fix bisection loop on missing results

Francois Cartegnie git at videolan.org
Sun Mar 1 20:49:24 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Mar  1 20:48:01 2015 +0100| [598821565dcc3af014bc18673dc34e676c00abbc] | committer: Francois Cartegnie

demux: ts: fix bisection loop on missing results

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

 modules/demux/ts.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 082d0ba..23b5166 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2724,6 +2724,8 @@ static int SeekToTime( demux_t *p_demux, ts_prg_psi_t *p_prg, int64_t i_scaledti
             }
         }
 
+        if ( !b_found && i_pos > i_tail_pos - p_sys->i_packet_size )
+            i_tail_pos = i_splitpos - p_sys->i_packet_size;
     }
 
     if( !b_found )



More information about the vlc-commits mailing list