aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wavpack.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-23 23:06:10 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-23 23:12:35 +0100
commit95953c1cfd51cb162190280c1c543e3314da3d63 (patch)
tree2e83208c514d11377e9cbf76ce25cf0fe45cfe30 /libavcodec/wavpack.c
parente93a73cbef53856596db895a7abede62d0ffab7e (diff)
downloadffmpeg-95953c1cfd51cb162190280c1c543e3314da3d63.tar.gz
avcodec/wavpack fix *void pointer arithmetic
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wavpack.c')
-rw-r--r--libavcodec/wavpack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index e1abe8d512..6f60514a28 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -490,8 +490,8 @@ static inline int wv_unpack_stereo(WavpackFrameContext *s, GetBitContext *gb,
if (last && count < s->samples) {
int size = av_get_bytes_per_sample(type);
- memset(dst_l + count*size, 0, (s->samples-count)*size);
- memset(dst_r + count*size, 0, (s->samples-count)*size);
+ memset((uint8_t*)dst_l + count*size, 0, (s->samples-count)*size);
+ memset((uint8_t*)dst_r + count*size, 0, (s->samples-count)*size);
}
if ((s->avctx->err_recognition & AV_EF_CRCCHECK) &&
@@ -558,7 +558,7 @@ static inline int wv_unpack_mono(WavpackFrameContext *s, GetBitContext *gb,
if (last && count < s->samples) {
int size = av_get_bytes_per_sample(type);
- memset(dst + count*size, 0, (s->samples-count)*size);
+ memset((uint8_t*)dst + count*size, 0, (s->samples-count)*size);
}
if (s->avctx->err_recognition & AV_EF_CRCCHECK) {