Revision 83120e3b libavformat/asfenc.c

View differences:

libavformat/asfenc.c
188 188
                2*PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS \
189 189
                )
190 190

  
191
typedef struct {
192
    uint32_t seqno;
193
    int is_streamed;
194
    ASFStream streams[128];              ///< it's max number and it's not that big
195
    /* non streamed additonnal info */
196
    uint64_t nb_packets;                 ///< how many packets are there in the file, invalid if broadcasting
197
    int64_t duration;                    ///< in 100ns units
198
    /* packet filling */
199
    unsigned char multi_payloads_present;
200
    int packet_size_left;
201
    int packet_timestamp_start;
202
    int packet_timestamp_end;
203
    unsigned int packet_nb_payloads;
204
    uint8_t packet_buf[PACKET_SIZE];
205
    ByteIOContext pb;
206
    /* only for reading */
207
    uint64_t data_offset;                ///< beginning of the first data packet
208

  
209
    int64_t last_indexed_pts;
210
    ASFIndex* index_ptr;
211
    uint32_t nb_index_count;
212
    uint32_t nb_index_memory_alloc;
213
    uint16_t maximum_packet;
214
} ASFContext;
215

  
191 216
static const AVCodecTag codec_asf_bmp_tags[] = {
192 217
    { CODEC_ID_MPEG4, MKTAG('M', 'P', '4', 'S') },
193 218
    { CODEC_ID_MPEG4, MKTAG('M', '4', 'S', '2') },

Also available in: Unified diff