[vlc-commits] Fix sizeof mismatch

Rémi Duraffort git at videolan.org
Fri Aug 9 10:37:22 CEST 2013


vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 26 19:29:07 2013 +0200| [2126fe89564c155a3041b4d9e61ca8d811edc05b] | committer: Jean-Baptiste Kempf

Fix sizeof mismatch

(cherry picked from commit f6d3a1dc63c0e327477f82ab46b9821ca7527c3a)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=2126fe89564c155a3041b4d9e61ca8d811edc05b
---

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

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index bb5fcff..106d796 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -931,7 +931,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 return VLC_EGENERIC;
 
             *pi_int = 1;
-            *ppp_title = malloc( sizeof( input_title_t**) );
+            *ppp_title = malloc( sizeof( input_title_t*) );
             (*ppp_title)[0] = vlc_input_title_Duplicate( p_sys->p_title );
             *pi_title_offset = 0;
             *pi_seekpoint_offset = 0;



More information about the vlc-commits mailing list