summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r--video/out/gl_video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 6fb41e5814..7cce15e884 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1499,6 +1499,10 @@ static bool get_image(struct gl_video *p, struct mp_image *mpi)
struct video_image *vimg = &p->image;
+ // See comments in init_video() about odd video sizes.
+ // The normal upload path does this too, but less explicit.
+ mp_image_set_size(mpi, vimg->planes[0].w, vimg->planes[0].h);
+
for (int n = 0; n < p->plane_count; n++) {
struct texplane *plane = &vimg->planes[n];
mpi->stride[n] = mpi->plane_w[n] * p->image_desc.bytes[n];