- /* Rationale for the "p_spudec->i_rle_size * 4": we are going to
- * expand the RLE stuff so that we won't need to read nibbles later
- * on. This will speed things up a lot. Plus, we'll only need to do
- * this stupid interlacing stuff once. */
- p_spu_data = malloc( sizeof(subpicture_data_t) + 4 * p_sys->i_rle_size );
- p_spu_data->p_data = (uint8_t *)p_spu_data + sizeof(subpicture_data_t);
- p_spu_data->b_palette = false;
- p_spu_data->b_auto_crop = false;
- p_spu_data->i_y_top_offset = 0;
- p_spu_data->i_y_bottom_offset = 0;
-
- p_spu_data->pi_alpha[0] = 0x00;
- p_spu_data->pi_alpha[1] = 0x0f;
- p_spu_data->pi_alpha[2] = 0x0f;
- p_spu_data->pi_alpha[3] = 0x0f;
+ /* */
+ spu_data.p_data = NULL;
+ spu_data.b_palette = false;
+ spu_data.b_auto_crop = false;
+ spu_data.i_y_top_offset = 0;
+ spu_data.i_y_bottom_offset = 0;
+
+ spu_data.pi_alpha[0] = 0x00;
+ spu_data.pi_alpha[1] = 0x0f;
+ spu_data.pi_alpha[2] = 0x0f;
+ spu_data.pi_alpha[3] = 0x0f;