summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-07 21:02:16 +0200
committerwm4 <wm4@nowhere>2015-09-07 21:18:30 +0200
commitcd32179627f979337ca4b55f20abfb14c3db370e (patch)
treebf07917cd30319a020605a0e9fd72ba7608c2bc0
parentf3b00ec142c99836c918da8cb23d02148440e5f1 (diff)
downloadmpv-cd32179627f979337ca4b55f20abfb14c3db370e.tar.bz2
mpv-cd32179627f979337ca4b55f20abfb14c3db370e.tar.xz
vo_opengl: comsetics: remove unnecessary line break
-rw-r--r--video/out/gl_video.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index cdaa8d8c26..bd97b34c7c 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -657,10 +657,8 @@ static void pass_set_image_textures(struct gl_video *p, struct video_image *vimg
// Make sure luma/chroma sizes are aligned.
// Example: For 4:2:0 with size 3x3, the subsampled chroma plane is 2x2
// so luma (3,3) has to align with chroma (2,2).
- chroma->m[0][0] = ls_w * (float)vimg->planes[0].w
- / vimg->planes[1].w;
- chroma->m[1][1] = ls_h * (float)vimg->planes[0].h
- / vimg->planes[1].h;
+ chroma->m[0][0] = ls_w * (float)vimg->planes[0].w / vimg->planes[1].w;
+ chroma->m[1][1] = ls_h * (float)vimg->planes[0].h / vimg->planes[1].h;
for (int n = 0; n < p->plane_count; n++) {
struct texplane *t = &vimg->planes[n];