当前位置:网站首页>AWLive 结构体的使用

AWLive 结构体的使用

2022-06-12 13:26:00 Li.CQ

结构体声明

// - 声明三种结构体
struct aw_flv_audio_tag;
struct aw_flv_video_tag;
struct aw_flv_script_tag;

// - 定义这三种结构体的变量
typedef struct aw_flv_common_tag{
    union{
        struct aw_flv_audio_tag *audio_tag;
        struct aw_flv_video_tag *video_tag;
        struct aw_flv_script_tag *script_tag;
    };
} aw_flv_common_tag;

// - 定义这三种结构体
typedef struct aw_flv_audio_tag{
    aw_flv_common_tag common_tag;
} aw_flv_audio_tag;

 

原网站

版权声明
本文为[Li.CQ]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_27074387/article/details/110393688