Revision 83120e3b libavformat/asf.h

View differences:

libavformat/asf.h
79 79
    uint16_t packet_count;
80 80
} ASFIndex;
81 81

  
82

  
83
typedef struct {
84
    uint32_t seqno;
85
    int is_streamed;
86
    int asfid2avid[128];                 ///< conversion table from asf ID 2 AVStream ID
87
    ASFStream streams[128];              ///< it's max number and it's not that big
88
    uint32_t stream_bitrates[128];       ///< max number of streams, bitrate for each (for streaming)
89
    char stream_languages[128][6];       ///< max number of streams, language for each (RFC1766, e.g. en-US)
90
    /* non streamed additonnal info */
91
    uint64_t nb_packets;                 ///< how many packets are there in the file, invalid if broadcasting
92
    int64_t duration;                    ///< in 100ns units
93
    /* packet filling */
94
    unsigned char multi_payloads_present;
95
    int packet_size_left;
96
    int packet_timestamp_start;
97
    int packet_timestamp_end;
98
    unsigned int packet_nb_payloads;
99
    int packet_nb_frames;
100
    uint8_t packet_buf[PACKET_SIZE];
101
    ByteIOContext pb;
102
    /* only for reading */
103
    uint64_t data_offset;                ///< beginning of the first data packet
104
    uint64_t data_object_offset;         ///< data object offset (excl. GUID & size)
105
    uint64_t data_object_size;           ///< size of the data object
106
    int index_read;
107

  
108
    ASFMainHeader hdr;
109

  
110
    int packet_flags;
111
    int packet_property;
112
    int packet_timestamp;
113
    int packet_segsizetype;
114
    int packet_segments;
115
    int packet_seq;
116
    int packet_replic_size;
117
    int packet_key_frame;
118
    int packet_padsize;
119
    unsigned int packet_frag_offset;
120
    unsigned int packet_frag_size;
121
    int64_t packet_frag_timestamp;
122
    int packet_multi_size;
123
    int packet_obj_size;
124
    int packet_time_delta;
125
    int packet_time_start;
126
    int64_t packet_pos;
127

  
128
    int stream_index;
129

  
130

  
131
    int64_t last_indexed_pts;
132
    ASFIndex* index_ptr;
133
    uint32_t nb_index_count;
134
    uint32_t nb_index_memory_alloc;
135
    uint16_t maximum_packet;
136

  
137
    ASFStream* asf_st;                   ///< currently decoded stream
138
} ASFContext;
139

  
140 82
extern const ff_asf_guid ff_asf_header;
141 83
extern const ff_asf_guid ff_asf_file_header;
142 84
extern const ff_asf_guid ff_asf_stream_header;

Also available in: Unified diff