summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_dlopen.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-10 21:02:16 +0200
committerwm4 <wm4@nowhere>2015-04-10 21:02:16 +0200
commit41151122e73f82d0bc9a806c80165878e930dc07 (patch)
tree6db2f28cf57cba6fcfe20f9229c4b9e27343cca1 /video/filter/vf_dlopen.c
parentb3495d9ccf5ad1d5d84284affed1083eee5887ee (diff)
downloadmpv-41151122e73f82d0bc9a806c80165878e930dc07.tar.bz2
mpv-41151122e73f82d0bc9a806c80165878e930dc07.tar.xz
mp_image: remove redundant chroma_x/y_shift fields
Diffstat (limited to 'video/filter/vf_dlopen.c')
-rw-r--r--video/filter/vf_dlopen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/filter/vf_dlopen.c b/video/filter/vf_dlopen.c
index 00e6245a2e..0424e83a61 100644
--- a/video/filter/vf_dlopen.c
+++ b/video/filter/vf_dlopen.c
@@ -82,11 +82,11 @@ static void set_imgprop(struct vf_dlopen_picdata *out, const mp_image_t *mpi)
out->plane[i] = mpi->planes[i];
out->planestride[i] = mpi->stride[i];
out->planewidth[i] =
- i ? (/*mpi->chroma_width*/ mpi->w >> mpi->chroma_x_shift) : mpi->w;
+ i ? (/*mpi->chroma_width*/ mpi->w >> mpi->fmt.chroma_xs) : mpi->w;
out->planeheight[i] =
- i ? (/*mpi->chroma_height*/ mpi->h >> mpi->chroma_y_shift) : mpi->h;
- out->planexshift[i] = i ? mpi->chroma_x_shift : 0;
- out->planeyshift[i] = i ? mpi->chroma_y_shift : 0;
+ i ? (/*mpi->chroma_height*/ mpi->h >> mpi->fmt.chroma_ys) : mpi->h;
+ out->planexshift[i] = i ? mpi->fmt.chroma_xs : 0;
+ out->planeyshift[i] = i ? mpi->fmt.chroma_ys : 0;
}
}