summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-01 11:28:59 +0100
committerwm4 <wm4@nowhere>2013-03-01 11:28:59 +0100
commit56149ff5ac9b5a287ed74e3bbe141c179a638dfc (patch)
treeac6c6fff708e09a4d627ad7c0a9bcf1783d67c27 /video/filter
parentc9088fff86068f3fc983ec6944e648cdc3ebe0a3 (diff)
downloadmpv-56149ff5ac9b5a287ed74e3bbe141c179a638dfc.tar.bz2
mpv-56149ff5ac9b5a287ed74e3bbe141c179a638dfc.tar.xz
vf_flip: move flipping code to mp_image.c
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_flip.c5
1 files changed, 1 insertions, 4 deletions
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;
}