[vlc-commits] demux: avi: don't skip master track for unseekable

Francois Cartegnie git at videolan.org
Mon Jan 11 21:17:28 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 11 18:47:51 2016 +0100| [6beabe2c2a34584ad95cee85ffdaa2bccf82bc76] | committer: Francois Cartegnie

demux: avi: don't skip master track for unseekable

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

 modules/demux/avi/avi.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 8c0c46d..247c552 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1403,7 +1403,8 @@ static int Demux_UnSeekable( demux_t *p_demux )
         else
         {
             /* check for time */
-            if( llabs( AVI_GetPTS( p_stream ) -
+            if( p_stream == p_stream_master ||
+                llabs( AVI_GetPTS( p_stream ) -
                         AVI_GetPTS( p_stream_master ) )< 2 * CLOCK_FREQ )
             {
                 /* load it and send to decoder */



More information about the vlc-commits mailing list