From 56149ff5ac9b5a287ed74e3bbe141c179a638dfc Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Mar 2013 11:28:59 +0100 Subject: vf_flip: move flipping code to mp_image.c --- video/filter/vf_flip.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'video/filter') diff --git a/video/filter/vf_flip.c b/video/filter/vf_flip.c index c94da49403..a28633c7ef 100644 --- a/video/filter/vf_flip.c +++ b/video/filter/vf_flip.c @@ -40,10 +40,7 @@ static int config(struct vf_instance *vf, int width, int height, static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi) { - for (int p = 0; p < mpi->num_planes; p++) { - mpi->planes[p] = mpi->planes[p] + mpi->stride[p] * (mpi->plane_h[p] - 1); - mpi->stride[p] = -mpi->stride[p]; - } + mp_image_vflip(mpi); return mpi; } -- cgit v1.2.3