And improve the performance by a little bit.
Unified · Split
| @@ -216,9 +216,6 @@ static void draw_block_rectangle(uint8_t *buf, int sx, int sy, int w, int h, ptr · 215 unmodified lines | |||
| 216 | buf[sx + w - 1] = color; | 216 | buf[sx + w - 1] = color; |
| 217 | buf += stride; | 217 | buf += stride; |
| 218 | } | 218 | } |
| 219 | |||
| 220 | for (int x = sx; x < sx + w; x++) | ||
| 221 | buf[x] = color; | ||
| 222 | } | 219 | } |
| 223 | 220 | ||
| 224 | static int filter_frame(AVFilterLink *inlink, AVFrame *frame) | 221 | static int filter_frame(AVFilterLink *inlink, AVFrame *frame) |