[vlc-commits] demux: tta: fix heap buffer ofw (fix #12357)

Francois Cartegnie git at videolan.org
Thu Oct 9 00:08:09 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct  8 17:09:44 2014 +0200| [3979f15fc235f576f5ed4278ffe06eab53425bf4] | committer: Francois Cartegnie

demux: tta: fix heap buffer ofw (fix #12357)

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

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

diff --git a/modules/demux/tta.c b/modules/demux/tta.c
index 606cb07..be48a9a 100644
--- a/modules/demux/tta.c
+++ b/modules/demux/tta.c
@@ -195,7 +195,7 @@ static int Demux( demux_t *p_demux )
     demux_sys_t *p_sys = p_demux->p_sys;
     block_t     *p_data;
 
-    if( p_sys->i_currentframe > p_sys->i_totalframes )
+    if( p_sys->i_currentframe >= p_sys->i_totalframes )
         return 0;
 
     p_data = stream_Block( p_demux->s, p_sys->pi_seektable[p_sys->i_currentframe] );



More information about the vlc-commits mailing list