Commit 9ca92cfb authored by Steve Lhomme's avatar Steve Lhomme

va_surface: clean the access to the picture_sys_t

parent fecefe0b
......@@ -38,8 +38,8 @@ struct va_pic_context
static inline VA_PICSYS *ActivePictureSys(picture_t *p_pic)
struct va_pic_context *pic_ctx = (struct va_pic_context*)p_pic->context;
return pic_ctx ? &pic_ctx->picsys : p_pic->p_sys;
struct va_pic_context *pic_ctx = container_of(p_pic->context, struct va_pic_context, s);
return p_pic->context ? &pic_ctx->picsys : p_pic->p_sys;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment