X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libpostproc%2Fpostprocess.c;h=ed5c2400128844553e4d9ad5cd3df4a30edcf596;hb=1fbd905bbb4ca4c8e15030bb80b6188ef4b0e135;hp=983b65effe0e0e75e4806232a41ff08714c6af10;hpb=15c481614bb410cfa147f8051024d42b01eadff8;p=ffmpeg diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 983b65effe0..ed5c2400128 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -75,6 +75,7 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks #include "config.h" #include "libavutil/avutil.h" +#include "libavutil/avassert.h" #include #include #include @@ -90,6 +91,7 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks unsigned postproc_version(void) { + av_assert0(LIBPOSTPROC_VERSION_MICRO >= 100); return LIBPOSTPROC_VERSION_INT; } @@ -912,7 +914,7 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride, int 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. + //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 }