OSDN Git Service

Avoid dereferencing a pointer before checking pointer against NULL
[android-x86/hardware-intel-common-vaapi.git] / src / i965_avc_bsd.h
index 25606ba..2631050 100644 (file)
@@ -31,8 +31,7 @@
 
 #define DMV_SIZE        0x88000 /* 557056 bytes for a frame */
 
-struct i965_avc_bsd_context
-{
+struct i965_avc_bsd_context {
     struct {
         dri_bo *bo;
     } bsd_raw_store;
@@ -42,14 +41,6 @@ struct i965_avc_bsd_context
     } mpr_row_store;
 };
 
-struct i965_avc_bsd_surface
-{
-    struct i965_avc_bsd_context *ctx;
-    dri_bo *dmv_top;
-    dri_bo *dmv_bottom;
-    int dmv_bottom_flag;
-};
-
 void i965_avc_bsd_pipeline(VADriverContextP, struct decode_state *, void *h264_context);
 void i965_avc_bsd_decode_init(VADriverContextP, void *h264_context);
 Bool i965_avc_bsd_ternimate(struct i965_avc_bsd_context *);