summaryrefslogtreecommitdiff
path: root/libavfilter/vf_deinterlace_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_deinterlace_qsv.c
parent7433feb82f75827884d909de34d341a1c4401d4a (diff)
lavfi: Use ff_get_video_buffer in all filters using hwframes
Diffstat (limited to 'libavfilter/vf_deinterlace_qsv.c')
-rw-r--r--libavfilter/vf_deinterlace_qsv.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libavfilter/vf_deinterlace_qsv.c b/libavfilter/vf_deinterlace_qsv.c
index b26a900c4f..36eea15fcc 100644
--- a/libavfilter/vf_deinterlace_qsv.c
+++ b/libavfilter/vf_deinterlace_qsv.c
@@ -433,13 +433,11 @@ static int process_frame(AVFilterContext *ctx, const AVFrame *in,
mfxStatus err;
int ret, again = 0;
- out = av_frame_alloc();
- if (!out)
- return AVERROR(ENOMEM);
-
- ret = av_hwframe_get_buffer(s->hw_frames_ctx, out, 0);
- if (ret < 0)
+ out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
+ if (!out) {
+ ret = AVERROR(ENOMEM);
goto fail;
+ }
surf_out = (mfxFrameSurface1*)out->data[3];
surf_out->Info.CropW = outlink->w;