From ba1447822cb46944a2de960a8f2523a92f19f749 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 25 May 2014 16:01:33 +0200 Subject: vf_vdpaupp: cosmetics: rename function --- video/filter/vf_vdpaupp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'video/filter/vf_vdpaupp.c') diff --git a/video/filter/vf_vdpaupp.c b/video/filter/vf_vdpaupp.c index 5fede55786..e0349c0c21 100644 --- a/video/filter/vf_vdpaupp.c +++ b/video/filter/vf_vdpaupp.c @@ -64,7 +64,7 @@ static void forget_frames(struct vf_instance *vf) #define FIELD_VALID(p, f) ((f) >= 0 && (f) < (p)->num_buffered * 2) -static VdpVideoSurface ref_frame(struct vf_priv_s *p, +static VdpVideoSurface ref_field(struct vf_priv_s *p, struct mp_vdpau_mixer_frame *frame, int pos) { if (!FIELD_VALID(p, pos)) @@ -96,10 +96,10 @@ static bool output_field(struct vf_instance *vf, int pos) VDP_VIDEO_MIXER_PICTURE_STRUCTURE_TOP_FIELD; } - frame->future[0] = ref_frame(p, frame, pos - 1); - frame->current = ref_frame(p, frame, pos); - frame->past[0] = ref_frame(p, frame, pos + 1); - frame->past[1] = ref_frame(p, frame, pos + 2); + frame->future[0] = ref_field(p, frame, pos - 1); + frame->current = ref_field(p, frame, pos); + frame->past[0] = ref_field(p, frame, pos + 1); + frame->past[1] = ref_field(p, frame, pos + 2); frame->opts = p->opts; -- cgit v1.2.3