[vlc-devel] bug in EStoPES (pes.c)

Alex Antropoff alant at transtelecom.md
Tue Jan 17 13:42:17 CET 2006


Hello, 
modules/mux/mpeg/pes.c line 290  
p_es = block_Realloc( p_es, i_pes_header, p_es->i_buffer );

If size of buffer is large, block_Realloc will create new block and 
we loss p_data, after that vlc crashes at line 306.

Please, make fix like this:

--- modules/mux/mpeg/pes.c.orig 2006-01-17 11:17:05.000000000 +0200
+++ modules/mux/mpeg/pes.c      2006-01-17 10:56:03.000000000 +0200
@@ -288,6 +288,7 @@
         if( p_es )
         {
             p_es = block_Realloc( p_es, i_pes_header, p_es->i_buffer );
+            p_data = p_es->p_buffer+i_pes_header;
             /* reuse p_es for first frame */
             *pp_pes = p_pes = p_es;
             /* don't touch i_dts, i_pts, i_length as are already set :) */

-- 
Regards, 
Alex Antropoff

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list