]> git.sesse.net Git - vlc/commitdiff
* warning fixes
authorAntoine Cellerier <dionoea@videolan.org>
Wed, 28 Sep 2005 19:00:42 +0000 (19:00 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Wed, 28 Sep 2005 19:00:42 +0000 (19:00 +0000)
modules/mux/ogg.c

index cad78987bfc36179b1acc35a308215db45666ebe..38619eb23ebe3ca68e8684676422173bb7fac838 100644 (file)
@@ -648,7 +648,7 @@ static block_t *OggCreateHeader( sout_mux_t *p_mux, mtime_t i_dts )
         else if( p_stream->i_fourcc == VLC_FOURCC( 'f', 'l', 'a', 'c' ) )
         {
             /* flac stream marker (yeah, only that in the 1st packet) */
-            op.packet = "fLaC";
+            op.packet = (unsigned char *)"fLaC";
             op.bytes  = 4;
             op.b_o_s  = 1;
             op.e_o_s  = 0;
@@ -729,7 +729,8 @@ static block_t *OggCreateHeader( sout_mux_t *p_mux, mtime_t i_dts )
 
             /* comment */
             com[0] = PACKET_TYPE_COMMENT;
-            i_com = snprintf( &com[1], 127, PACKAGE_VERSION" stream output" )
+            i_com = snprintf( (char *)(com+1), 127,
+                              PACKAGE_VERSION" stream output" )
                      + 1;
             op.packet = com;
             op.bytes  = i_com;