Commit 07050d7b authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_fieldorder: fix heap-buffer overflow

Fixes #8264
parent 99f8d321
...@@ -108,8 +108,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) ...@@ -108,8 +108,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
s->dst_tff ? "up" : "down"); s->dst_tff ? "up" : "down");
h = frame->height; h = frame->height;
for (plane = 0; plane < 4 && frame->data[plane] && frame->linesize[plane]; plane++) { for (plane = 0; plane < 4 && frame->data[plane] && frame->linesize[plane]; plane++) {
dst_line_step = out->linesize[plane]; dst_line_step = out->linesize[plane] * (h > 2);
src_line_step = frame->linesize[plane]; src_line_step = frame->linesize[plane] * (h > 2);
line_size = s->line_size[plane]; line_size = s->line_size[plane];
dst = out->data[plane]; dst = out->data[plane];
src = frame->data[plane]; src = frame->data[plane];
......
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