Skip to content

Commit

Permalink
avfilter/vf_scale_rga: output wstride align to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jjm2473 authored Jun 8, 2023
1 parent 9892acd commit 4dbf181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavfilter/vf_scale_rga.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static int scale_rga_config_output(AVFilterLink *outlink)
rect->height = rect->height >> 1 << 1;
av_log(ctx, AV_LOG_DEBUG, "Final output video size w:%d h:%d\n", rect->width, rect->height);

rect->wstride = rect->width;
rect->wstride = (rect->width + 3) >> 2 << 2;
rect->hstride = rect->height;
rect->xoffset = 0;
rect->yoffset = 0;
Expand Down

0 comments on commit 4dbf181

Please sign in to comment.