[vlc-commits] demux: mp4: fix segfault in rtp

Francois Cartegnie git at videolan.org
Wed Jun 1 14:00:08 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jun  1 13:58:34 2016 +0200| [559d253698a179246d5d86c4e4b76d41fc282e2a] | committer: Francois Cartegnie

demux: mp4: fix segfault in rtp

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

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

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index a7d11f1..ee11dd9 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -957,7 +957,7 @@ static block_t * MP4_RTPHintToFrame( demux_t *p_demux, block_t *p_block, uint32_
         memcpy( p_dst, p_src, sample_cons.length );
         p_dst += sample_cons.length;
 
-        i_payload += p_dst - p_newblock->p_buffer;
+        i_payload = p_dst - p_newblock->p_buffer;
     }
 
     block_Release( p_block );



More information about the vlc-commits mailing list