[vlc-commits] Fix sizeof mismatch
Rémi Duraffort
git at videolan.org
Fri Aug 9 10:28:57 CEST 2013
vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Aug 8 18:42:38 2013 +0200| [f2fad1cdf1a6d08c903f0408158d67e243e3d68e] | committer: Jean-Baptiste Kempf
Fix sizeof mismatch
(cherry picked from commit 3321490df657b348e83b0a9439bbdf4cda90caf8)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=f2fad1cdf1a6d08c903f0408158d67e243e3d68e
---
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 016c5be..bb5fcff 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -914,7 +914,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_EGENERIC;
*pi_int = p_sys->i_attachments;;
- *ppp_attach = malloc( sizeof(input_attachment_t**) * p_sys->i_attachments );
+ *ppp_attach = malloc( sizeof(input_attachment_t*) * p_sys->i_attachments );
for( i = 0; i < p_sys->i_attachments; i++ )
(*ppp_attach)[i] = vlc_input_attachment_Duplicate( p_sys->attachments[i] );
return VLC_SUCCESS;
More information about the vlc-commits
mailing list