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;
goto fail;
}
+ output->width = outlink->w;
+ output->height = outlink->h;
+
err = av_frame_copy_props(output, input);
if (err < 0)
goto fail;