diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-02-23 15:50:28 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-08-23 13:15:16 +0200 |
commit | 459baf97ea6e5045f93424fbda54c9ef06ce2fe9 (patch) | |
tree | 043384d4cfd1aa312d075593cfc3850d21cf6f68 | |
parent | 758b15404755af97a7c538010561f84d9a02095c (diff) | |
download | ffmpeg-459baf97ea6e5045f93424fbda54c9ef06ce2fe9.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>
-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 c1deb71ec9..0376725af7 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -985,7 +985,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; |