changeset 11279:08fdccf61a03 libavcodec

Fix doxy and assert().
author michael
date Wed, 24 Feb 2010 22:05:51 +0000
parents bd5ea8e6f1d3
children fea25a6f874e
files rectangle.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;