diff options
author | wm4 <wm4@nowhere> | 2015-04-10 21:02:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-10 21:02:16 +0200 |
commit | 41151122e73f82d0bc9a806c80165878e930dc07 (patch) | |
tree | 6db2f28cf57cba6fcfe20f9229c4b9e27343cca1 /video/filter/vf_eq.c | |
parent | b3495d9ccf5ad1d5d84284affed1083eee5887ee (diff) | |
download | mpv-41151122e73f82d0bc9a806c80165878e930dc07.tar.bz2 mpv-41151122e73f82d0bc9a806c80165878e930dc07.tar.xz |
mp_image: remove redundant chroma_x/y_shift fields
Diffstat (limited to 'video/filter/vf_eq.c')
-rw-r--r-- | video/filter/vf_eq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/filter/vf_eq.c b/video/filter/vf_eq.c index 3381f248f7..deacfff0e6 100644 --- a/video/filter/vf_eq.c +++ b/video/filter/vf_eq.c @@ -191,8 +191,8 @@ static struct mp_image *filter(struct vf_instance *vf, struct mp_image *src) if ((eq2->buf_w[0] != src->w) || (eq2->buf_h[0] != src->h)) { eq2->buf_w[0] = src->w; eq2->buf_h[0] = src->h; - eq2->buf_w[1] = eq2->buf_w[2] = src->w >> src->chroma_x_shift; - eq2->buf_h[1] = eq2->buf_h[2] = src->h >> src->chroma_y_shift; + eq2->buf_w[1] = eq2->buf_w[2] = src->w >> src->fmt.chroma_xs; + eq2->buf_h[1] = eq2->buf_h[2] = src->h >> src->fmt.chroma_ys; img_n = eq2->buf_w[0]*eq2->buf_h[0]; if(src->num_planes>1){ img_c = eq2->buf_w[1]*eq2->buf_h[1]; |