Commit e3dad6ab authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: move union at the end of struct

Wise with a struct that has a bad track record
of read overflows and now contains a pf_
parent e6dfd01f
...@@ -1388,17 +1388,15 @@ struct MP4_Box_s ...@@ -1388,17 +1388,15 @@ struct MP4_Box_s
uint64_t i_size; /* always set so use it */ uint64_t i_size; /* always set so use it */
MP4_Box_data_t data; /* union of pointers on extended data depending MP4_Box_t *p_father; /* pointer on the father Box */
on i_type (or i_usertype) */ MP4_Box_t *p_first; /* pointer on the first child Box */
MP4_Box_t *p_last;
struct MP4_Box_s *p_father; /* pointer on the father Box */ MP4_Box_t *p_next; /* pointer on the next boxes at the same level */
struct MP4_Box_s *p_first; /* pointer on the first child Box */
struct MP4_Box_s *p_last;
struct MP4_Box_s *p_next; /* pointer on the next boxes at the same level */
void (*pf_free)( MP4_Box_t *p_box ); /* pointer to free function for this box */ void (*pf_free)( MP4_Box_t *p_box ); /* pointer to free function for this box */
MP4_Box_data_t data; /* union of pointers on extended data depending
on i_type (or i_usertype) */
}; };
static inline size_t mp4_box_headersize( MP4_Box_t *p_box ) static inline size_t mp4_box_headersize( MP4_Box_t *p_box )
......
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