aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_scale_qsv.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_scale_qsv.c
parent7433feb82f75827884d909de34d341a1c4401d4a (diff)
downloadffmpeg-7e2561fa8313982aa21f7657953eedeeb33b210d.tar.gz
lavfi: Use ff_get_video_buffer in all filters using hwframes
Diffstat (limited to 'libavfilter/vf_scale_qsv.c')
-rw-r--r--libavfilter/vf_scale_qsv.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c
index e5c3da5a51..f7c1c55092 100644
--- a/libavfilter/vf_scale_qsv.c
+++ b/libavfilter/vf_scale_qsv.c
@@ -528,16 +528,12 @@ static int qsvscale_filter_frame(AVFilterLink *link, AVFrame *in)
AVFrame *out = NULL;
int ret = 0;
- 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->out_frames_ref, out, 0);
- if (ret < 0)
- goto fail;
-
do {
err = MFXVideoVPP_RunFrameVPPAsync(s->session,
(mfxFrameSurface1*)in->data[3],