X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Frectangle.h;fp=libavcodec%2Frectangle.h;h=e26d70f8a4a373ae725f15402c44e78e4f9e91ff;hb=3393bff10d81fecc7e0ae702a038e315a8284301;hp=a36734367617840f9d3f5b4a19ea9c1fb9a119a8;hpb=377fc38d5d321a57eab96e5decc4ee794c633b96;p=ffmpeg diff --git a/libavcodec/rectangle.h b/libavcodec/rectangle.h index a3673436761..e26d70f8a4a 100644 --- a/libavcodec/rectangle.h +++ b/libavcodec/rectangle.h @@ -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;