--- libavcodec/alac.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavcodec/alac.c b/libavcodec/alac.c index e2a7d79..42dfdad 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -177,7 +177,8 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer, if (output_size <= 1) return; - memcpy(buffer_out+1, error_buffer+1, (output_size-1) * 4); + memcpy(&buffer_out[1], &error_buffer[1], + (output_size - 1) * sizeof(*buffer_out)); return; } -- 1.7.1 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel