diff options
author | Mark Thompson <sw@jkqxz.net> | 2016-11-01 01:14:10 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2016-11-02 23:07:15 +0300 |
commit | 7e2561fa8313982aa21f7657953eedeeb33b210d (patch) | |
tree | 1158e9d8c5a42bf5a6616dabb084117c92566c51 /libavfilter/vf_hwupload_cuda.c | |
parent | 7433feb82f75827884d909de34d341a1c4401d4a (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.c | 6 |
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; |