Commit e8a2b299 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 3979f15fc235f576f5ed4278ffe06eab53425bf4)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent fc45e6cb
...@@ -195,7 +195,7 @@ static int Demux( demux_t *p_demux ) ...@@ -195,7 +195,7 @@ static int Demux( demux_t *p_demux )
demux_sys_t *p_sys = p_demux->p_sys; demux_sys_t *p_sys = p_demux->p_sys;
block_t *p_data; block_t *p_data;
if( p_sys->i_currentframe > p_sys->i_totalframes ) if( p_sys->i_currentframe >= p_sys->i_totalframes )
return 0; return 0;
p_data = stream_Block( p_demux->s, p_sys->pi_seektable[p_sys->i_currentframe] ); p_data = stream_Block( p_demux->s, p_sys->pi_seektable[p_sys->i_currentframe] );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment