# HG changeset patch # User michael # Date 1267049151 0 # Node ID 08fdccf61a03282b0eed353763a841fef908f806 # Parent bd5ea8e6f1d39813efe7527fea814082a53971d1 Fix doxy and assert(). diff -r bd5ea8e6f1d3 -r 08fdccf61a03 rectangle.h --- a/rectangle.h Wed Feb 24 21:55:55 2010 +0000 +++ b/rectangle.h Wed Feb 24 22:05:51 2010 +0000 @@ -37,11 +37,11 @@ * fill a rectangle. * @param h height of the rectangle, should be a constant * @param w width of the rectangle, should be a constant - * @param size the size of val (1 or 4), should be a constant + * @param size the size of val (1, 2 or 4), should be a constant */ static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride, uint32_t val, int size){ uint8_t *p= (uint8_t*)vp; - assert(size==1 || size==4); + assert(size==1 || size==2 || size==4); assert(w<=4); w *= size;