Commit 1f8e1c20 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit 'c3f113d5'

* commit 'c3f113d5':
  vf_hwdownload: allocate the destination frame for the pool size
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 7071924c c3f113d5
......@@ -142,7 +142,8 @@ static int hwdownload_filter_frame(AVFilterLink *link, AVFrame *input)
goto fail;
}
output = ff_get_video_buffer(outlink, outlink->w, outlink->h);
output = ff_get_video_buffer(outlink, ctx->hwframes->width,
ctx->hwframes->height);
if (!output) {
err = AVERROR(ENOMEM);
goto fail;
......@@ -154,6 +155,9 @@ static int hwdownload_filter_frame(AVFilterLink *link, AVFrame *input)
goto fail;
}
output->width = outlink->w;
output->height = outlink->h;
err = av_frame_copy_props(output, input);
if (err < 0)
goto fail;
......
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