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
1 changed files with 2 additions and 1 deletions

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;
}