Commit 0e0f74b6 authored by James Almer's avatar James Almer

avfilter/vf_drawbox: use the correct macro to fill rgb plane pointers

Fixes ticket #9924
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 3f0fac93
......@@ -162,7 +162,7 @@ static void draw_region(AVFrame *frame, DrawBoxContext *ctx, int left, int top,
row[2] = frame->data[0] + y * frame->linesize[0] + ctx->rgba_map[2];
#define ASSIGN_FOUR_CHANNELS_PACKED \
ASSIGN_THREE_CHANNELS \
ASSIGN_THREE_CHANNELS_PACKED \
row[3] = frame->data[0] + y * frame->linesize[0] + ctx->rgba_map[3];
static void draw_region_rgb_packed(AVFrame *frame, DrawBoxContext *ctx, int left, int top, int right, int down,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment