PS: fix duration computation on some files
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 12 Aug 2014 01:28:12 +0000 (03:28 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 12 Aug 2014 01:28:12 +0000 (03:28 +0200)
Ref #9412

modules/demux/ps.c

index b74d07d..a7d96b5 100644 (file)
@@ -255,7 +255,7 @@ static void FindLength( demux_t *p_demux )
 
         /* Check end */
         i_size = stream_Size( p_demux->s );
-        i_end = VLC_CLIP( i_size, 0, 200000 );
+        i_end = VLC_CLIP( i_size, 0, 20000 );
         stream_Seek( p_demux->s, i_size - i_end );
 
         i = 0;