aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-11 02:32:01 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-11 02:32:01 +0000
commit2023cfea0fa56aa15396d6c0a43b290aa6e6c9b4 (patch)
tree6539bb667e6b441bc134956752b9f0f7338af6a4 /libavcodec
parent3952471da5ab379f4567b848d767064168b3d2a6 (diff)
downloadffmpeg-2023cfea0fa56aa15396d6c0a43b290aa6e6c9b4.tar.gz
Add some required casts
These casts are correct and safe. The pointers are guaranteed to have proper alignment, and aliasing is not a problem with character types. Originally committed as revision 22446 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dsputil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 5c776fd04e..cb9d38100c 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -777,8 +777,8 @@ static void fill_block8_c(uint8_t *block, uint8_t value, int line_size, int h)
static void scale_block_c(const uint8_t src[64]/*align 8*/, uint8_t *dst/*align 8*/, int linesize)
{
int i, j;
- uint16_t *dst1 = dst;
- uint16_t *dst2 = dst + linesize;
+ uint16_t *dst1 = (uint16_t *) dst;
+ uint16_t *dst2 = (uint16_t *)(dst + linesize);
for (j = 0; j < 8; j++) {
for (i = 0; i < 8; i++) {