[vlc-commits] demux: ogg: wrong allocation size

Francois Cartegnie git at videolan.org
Wed Mar 12 17:19:58 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 12 17:04:23 2014 +0100| [28787e220f27f7677ecbd1e2d72a917e304f8b70] | committer: Francois Cartegnie

demux: ogg: wrong allocation size

cid #1191888

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

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

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 59be663..ea09a3a 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -415,7 +415,7 @@ static int Demux( demux_t * p_demux )
             {
                 assert( p_stream->p_prepcr_blocks == NULL );
                 p_stream->i_prepcr_blocks = 0;
-                p_stream->p_prepcr_blocks = malloc( sizeof(block_t) * ogg_page_packets( &p_sys->current_page ) );
+                p_stream->p_prepcr_blocks = malloc( sizeof(block_t *) * ogg_page_packets( &p_sys->current_page ) );
             }
         }
 



More information about the vlc-commits mailing list