summaryrefslogtreecommitdiff
path: root/libavfilter/vf_hwupload_cuda.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-10-31 22:14:10 +0000
committerMark Thompson <sw@jkqxz.net>2016-11-02 20:07:15 +0000
commit7e2561fa8313982aa21f7657953eedeeb33b210d (patch)
tree1158e9d8c5a42bf5a6616dabb084117c92566c51 /libavfilter/vf_hwupload_cuda.c
parent7433feb82f75827884d909de34d341a1c4401d4a (diff)
lavfi: Use ff_get_video_buffer in all filters using hwframes
Diffstat (limited to 'libavfilter/vf_hwupload_cuda.c')
-rw-r--r--libavfilter/vf_hwupload_cuda.c6
1 files changed, 1 insertions, 5 deletions
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;