diff options
author | Matthieu Bouron <matthieu.bouron@gmail.com> | 2017-03-29 23:31:20 +0200 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@gmail.com> | 2017-03-29 23:33:20 +0200 |
commit | 78e871ebbcc6f3c877e7292c4dda0c9979f8ede4 (patch) | |
tree | dde035107feb68839a074828a4c9f4c36e27fa3d /libavfilter/vf_hwupload_cuda.c | |
parent | b4016ef31a6ea007e481427ade35ac35d1519170 (diff) | |
parent | 7e2561fa8313982aa21f7657953eedeeb33b210d (diff) |
Merge commit '7e2561fa8313982aa21f7657953eedeeb33b210d'
* commit '7e2561fa8313982aa21f7657953eedeeb33b210d':
lavfi: Use ff_get_video_buffer in all filters using hwframes
vf_hwupload_cuda: Fix build error
Merged-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Diffstat (limited to 'libavfilter/vf_hwupload_cuda.c')
-rw-r--r-- | libavfilter/vf_hwupload_cuda.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavfilter/vf_hwupload_cuda.c b/libavfilter/vf_hwupload_cuda.c index 49f34b6c52..1e47ada242 100644 --- a/libavfilter/vf_hwupload_cuda.c +++ b/libavfilter/vf_hwupload_cuda.c @@ -113,21 +113,17 @@ static int cudaupload_config_output(AVFilterLink *outlink) static int cudaupload_filter_frame(AVFilterLink *link, AVFrame *in) { AVFilterContext *ctx = link->dst; - CudaUploadContext *s = ctx->priv; + AVFilterLink *outlink = ctx->outputs[0]; AVFrame *out = NULL; int ret; - out = av_frame_alloc(); + out = ff_get_video_buffer(outlink, outlink->w, outlink->h); if (!out) { ret = AVERROR(ENOMEM); goto fail; } - ret = av_hwframe_get_buffer(s->hwframe, out, 0); - if (ret < 0) - goto fail; - out->width = in->width; out->height = in->height; |