Browse Source

postproc: fix unaligned access

Based on 59074310 by Andreas Cadhalpun.
Fixes ticket #5259.
tags/n3.1
Carl Eugen Hoyos 9 years ago
parent
commit
2aa21eec1a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libpostproc/postprocess.c

+ 1
- 1
libpostproc/postprocess.c View File

@@ -973,7 +973,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;


Loading…
Cancel
Save