]> git.sesse.net Git - vlc/blobdiff - modules/demux/mpeg/m4v.c
input options whitelisting, step 2 (refs #1371)
[vlc] / modules / demux / mpeg / m4v.c
index c53cc1ca317646b7c27873af917ddc92a2b2bea9..88bd4fd2dfac9e7fc448f60df6167b7f02cd5012 100644 (file)
@@ -24,7 +24,6 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdlib.h>                                      /* malloc(), free() */
 
 #include <vlc/vlc.h>
 #include <vlc_demux.h>
@@ -49,6 +48,7 @@ vlc_module_begin();
     add_shortcut( "m4v" );
     add_shortcut( "mp4v" );
     add_float( "m4v-fps", 25, NULL, FPS_TEXT, FPS_LONGTEXT, VLC_FALSE );
+        change_safe();
 vlc_module_end();
 
 /*****************************************************************************
@@ -75,7 +75,7 @@ static int Open( vlc_object_t * p_this )
 {
     demux_t     *p_demux = (demux_t*)p_this;
     demux_sys_t *p_sys;
-    uint8_t     *p_peek;
+    const uint8_t *p_peek;
     vlc_value_t val;
 
     if( stream_Peek( p_demux->s, &p_peek, 4 ) < 4 ) return VLC_EGENERIC;