0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vo_opengl: don't crash on unsupported formats

Regression from recent refactor.
This commit is contained in:
wm4 2017-02-17 19:48:29 +01:00
parent b3488822fd
commit f02752c0d5

View File

@ -415,10 +415,11 @@ supported:
snprintf(out->swizzle, sizeof(out->swizzle), "%s", swizzle);
out->num_planes = desc.num_planes;
for (int n = 0; n < desc.num_planes; n++) {
if (!planes[n])
return false;
out->xs[n] = desc.xs[n];
out->ys[n] = desc.ys[n];
out->planes[n] = planes[n];
assert(planes[n]);
}
return true;
}