Permalink
Browse files

Fix the fix for initialising surfaces in vaapi. Thanks to Gavin for p…

…ointing out that these were arrays which I was blindly missing.
  • Loading branch information...
1 parent 6daec74 commit 1e2931859f74e14e3b6b65d18cb2441e5e87ca25 @stuartm stuartm committed May 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/vaapicontext.cpp
View
4 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(VASurfaceID));
- memset(m_surfaceData, 0, sizeof(vaapi_surface));
+ memset(m_surfaces, 0, m_numSurfaces * sizeof(VASurfaceID));
+ memset(m_surfaceData, 0, m_numSurfaces * sizeof(vaapi_surface));
INIT_ST;
va_status = vaCreateSurfaces(m_ctx.display, m_size.width(), m_size.height(),

0 comments on commit 1e29318

Please sign in to comment.