Permalink
Browse files

Fix error in zeroing memory for surfaces in VAAPIContext found by cpp…

…check.
  • Loading branch information...
1 parent 19897d3 commit 6daec74df7b5aecc0927f3036eaba735f56f015a @stuartm stuartm committed May 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/vaapicontext.cpp
@@ -565,8 +565,8 @@ bool VAAPIContext::InitBuffers(void)
if (!m_surfaces || !m_surfaceData)
return false;
- memset(m_surfaces, 0, sizeof(m_surfaces));
- memset(m_surfaceData, 0, sizeof(m_surfaceData));
+ memset(m_surfaces, 0, sizeof(VASurfaceID));
+ memset(m_surfaceData, 0, sizeof(vaapi_surface));
INIT_ST;
va_status = vaCreateSurfaces(m_ctx.display, m_size.width(), m_size.height(),

0 comments on commit 6daec74

Please sign in to comment.