aboutsummaryrefslogtreecommitdiff
path: root/libpostproc
diff options
context:
space:
mode:
authorMichael Niedermayer2014-10-12 20:26:27 +0200
committerMichael Niedermayer2014-10-12 22:22:39 +0200
commit941aaa39e8cd78ba4d16dfcec767290aec9a0136 (patch)
tree6e095621724bade93dbcb746fd24c9636e09fee8 /libpostproc
parent9a460db63be7f24768edea48dc94b8a754068efd (diff)
postproc/postprocess: fix quant store for fq mode
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc')
-rw-r--r--libpostproc/postprocess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index bb6a3b4e61..e3fc2675a1 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -1019,7 +1019,7 @@ void pp_postprocess(const uint8_t * src[3], const int srcStride[3],
if((pict_type&7)!=3){
if (QPStride >= 0){
int i;
- const int count= mbHeight * QPStride;
+ const int count= mbHeight * FFMAX(QPStride, mbWidth);
for(i=0; i<(count>>2); i++){
((uint32_t*)c->nonBQPTable)[i] = ((const uint32_t*)QP_store)[i] & 0x3F3F3F3F;
}