[vlc-commits] flac: fix void pointer arithmetic warning
Tristan Matthews
git at videolan.org
Thu Dec 5 06:22:54 CET 2013
vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Thu Dec 5 00:21:25 2013 -0500| [0a48d14920e5b0ab82f25f4df259151394be9790] | committer: Tristan Matthews
flac: fix void pointer arithmetic warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a48d14920e5b0ab82f25f4df259151394be9790
---
modules/codec/flac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/flac.c b/modules/codec/flac.c
index a43983a..9552acc 100644
--- a/modules/codec/flac.c
+++ b/modules/codec/flac.c
@@ -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;
}
More information about the vlc-commits
mailing list