diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-02-23 15:50:28 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-04-29 14:23:40 +0200 |
commit | 6d36d0ade93c5a7f40d57f2036cc4c98788b3c5b (patch) | |
tree | c1a7d8282e46a64e9a8a1b418fee1aa67ba7987a /libpostproc | |
parent | e0d4decf52ffc21c5ef891ec66e733f0bf5112db (diff) | |
download | ffmpeg-6d36d0ade93c5a7f40d57f2036cc4c98788b3c5b.tar.gz |
postproc: fix unaligned access
Based on 59074310 by Andreas Cadhalpun.
Fixes ticket #5259.
(cherry picked from commit 2aa21eec1adcb3737be59f0eab7081c5a790faa9)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libpostproc')
-rw-r--r-- | libpostproc/postprocess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 1bc08c0408..6a11811a42 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -1004,7 +1004,7 @@ void pp_postprocess(const uint8_t * src[3], const int srcStride[3], int i; const int count= FFMAX(mbHeight * absQPStride, mbWidth); for(i=0; i<(count>>2); i++){ - ((uint32_t*)c->stdQPTable)[i] = (((const uint32_t*)QP_store)[i]>>1) & 0x7F7F7F7F; + AV_WN32(c->stdQPTable + (i<<2), AV_RN32(QP_store + (i<<2)) >> 1 & 0x7F7F7F7F); } for(i<<=2; i<count; i++){ c->stdQPTable[i] = QP_store[i]>>1; |