From 7e2561fa8313982aa21f7657953eedeeb33b210d Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Mon, 31 Oct 2016 22:14:10 +0000 Subject: lavfi: Use ff_get_video_buffer in all filters using hwframes --- libavfilter/vf_hwupload_cuda.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libavfilter/vf_hwupload_cuda.c') diff --git a/libavfilter/vf_hwupload_cuda.c b/libavfilter/vf_hwupload_cuda.c index dfb35066f6..0ab5276933 100644 --- a/libavfilter/vf_hwupload_cuda.c +++ b/libavfilter/vf_hwupload_cuda.c @@ -156,16 +156,12 @@ static int cudaupload_filter_frame(AVFilterLink *link, AVFrame *in) 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; -- cgit v1.2.3