Fix attribute buffer overflow for fully planar YUV formats
This commit is contained in:
parent
579f25c1ba
commit
0c6c882f50
1 changed files with 2 additions and 1 deletions
|
|
@ -436,7 +436,8 @@ ssize_t DrmRenderer::exportEGLImages(AVFrame *frame, EGLDisplay dpy,
|
|||
SDL_assert(drmFrame->nb_objects == 1);
|
||||
SDL_assert(drmFrame->nb_layers == 1);
|
||||
|
||||
const int MAX_ATTRIB_COUNT = 30;
|
||||
// Max 30 attributes (1 key + 1 value for each)
|
||||
const int MAX_ATTRIB_COUNT = 30 * 2;
|
||||
EGLAttrib attribs[MAX_ATTRIB_COUNT] = {
|
||||
EGL_LINUX_DRM_FOURCC_EXT, (EGLAttrib)drmFrame->layers[0].format,
|
||||
EGL_WIDTH, frame->width,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue