flac: fix void pointer arithmetic warning
authorTristan Matthews <le.businessman@gmail.com>
Thu, 5 Dec 2013 05:21:25 +0000 (00:21 -0500)
committerTristan Matthews <le.businessman@gmail.com>
Thu, 5 Dec 2013 05:21:25 +0000 (00:21 -0500)
modules/codec/flac.c

index a43983a..9552acc 100644 (file)
@@ -587,7 +587,7 @@ EncoderWriteCallback( const FLAC__StreamEncoder *encoder,
             p_enc->fmt_out.i_extra = STREAMINFO_SIZE + 8;
             p_enc->fmt_out.p_extra = xmalloc( STREAMINFO_SIZE + 8);
             memcpy(p_enc->fmt_out.p_extra, "fLaC", 4);
-            memcpy(p_enc->fmt_out.p_extra + 4, buffer, STREAMINFO_SIZE );
+            memcpy((uint8_t*)p_enc->fmt_out.p_extra + 4, buffer, STREAMINFO_SIZE );
             /* Fake this as the last metadata block */
             ((uint8_t*)p_enc->fmt_out.p_extra)[4] |= 0x80;
         }