diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-18 23:08:44 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-18 23:08:44 +0400 |
commit | d9b141c05f32583256b14667757b8c921417701b (patch) | |
tree | c8caf3459739832a595c1dfafda5cc1ed742b03b /libpostproc | |
parent | 27f936eca8a1703a5c203f5d2cbc76862c9219fc (diff) |
postproc/postprocess: Remove unused argument from reallocAlign()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc')
-rw-r--r-- | libpostproc/postprocess.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 6dee0417e5..081b430939 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -853,7 +853,7 @@ void pp_free_mode(pp_mode *mode){ av_free(mode); } -static void reallocAlign(void **p, int alignment, int size){ +static void reallocAlign(void **p, int size){ av_free(*p); *p= av_mallocz(size); } @@ -866,23 +866,23 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride, int c->stride= stride; c->qpStride= qpStride; - reallocAlign((void **)&c->tempDst, 8, stride*24+32); - reallocAlign((void **)&c->tempSrc, 8, stride*24); - reallocAlign((void **)&c->tempBlocks, 8, 2*16*8); - reallocAlign((void **)&c->yHistogram, 8, 256*sizeof(uint64_t)); + reallocAlign((void **)&c->tempDst, stride*24+32); + reallocAlign((void **)&c->tempSrc, stride*24); + reallocAlign((void **)&c->tempBlocks, 2*16*8); + reallocAlign((void **)&c->yHistogram, 256*sizeof(uint64_t)); for(i=0; i<256; i++) c->yHistogram[i]= width*height/64*15/256; for(i=0; i<3; i++){ //Note: The +17*1024 is just there so I do not have to worry about r/w over the end. - reallocAlign((void **)&c->tempBlurred[i], 8, stride*mbHeight*16 + 17*1024); - reallocAlign((void **)&c->tempBlurredPast[i], 8, 256*((height+7)&(~7))/2 + 17*1024);//FIXME size + reallocAlign((void **)&c->tempBlurred[i], stride*mbHeight*16 + 17*1024); + reallocAlign((void **)&c->tempBlurredPast[i], 256*((height+7)&(~7))/2 + 17*1024);//FIXME size } - reallocAlign((void **)&c->deintTemp, 8, 2*width+32); - reallocAlign((void **)&c->nonBQPTable, 8, qpStride*mbHeight*sizeof(QP_STORE_T)); - reallocAlign((void **)&c->stdQPTable, 8, qpStride*mbHeight*sizeof(QP_STORE_T)); - reallocAlign((void **)&c->forcedQPTable, 8, mbWidth*sizeof(QP_STORE_T)); + reallocAlign((void **)&c->deintTemp, 2*width+32); + reallocAlign((void **)&c->nonBQPTable, qpStride*mbHeight*sizeof(QP_STORE_T)); + reallocAlign((void **)&c->stdQPTable, qpStride*mbHeight*sizeof(QP_STORE_T)); + reallocAlign((void **)&c->forcedQPTable, mbWidth*sizeof(QP_STORE_T)); } static const char * context_to_name(void * ptr) { |