Revision 83120e3b libavformat/asfdec.c

View differences:

libavformat/asfdec.c
32 32

  
33 33
void ff_mms_set_stream_selection(URLContext *h, AVFormatContext *format);
34 34

  
35
typedef struct {
36
    int asfid2avid[128];                 ///< conversion table from asf ID 2 AVStream ID
37
    ASFStream streams[128];              ///< it's max number and it's not that big
38
    uint32_t stream_bitrates[128];       ///< max number of streams, bitrate for each (for streaming)
39
    char stream_languages[128][6];       ///< max number of streams, language for each (RFC1766, e.g. en-US)
40
    /* non streamed additonnal info */
41
    uint64_t nb_packets;                 ///< how many packets are there in the file, invalid if broadcasting
42
    /* packet filling */
43
    int packet_size_left;
44
    int packet_nb_frames;
45
    /* only for reading */
46
    uint64_t data_offset;                ///< beginning of the first data packet
47
    uint64_t data_object_offset;         ///< data object offset (excl. GUID & size)
48
    uint64_t data_object_size;           ///< size of the data object
49
    int index_read;
50

  
51
    ASFMainHeader hdr;
52

  
53
    int packet_flags;
54
    int packet_property;
55
    int packet_timestamp;
56
    int packet_segsizetype;
57
    int packet_segments;
58
    int packet_seq;
59
    int packet_replic_size;
60
    int packet_key_frame;
61
    int packet_padsize;
62
    unsigned int packet_frag_offset;
63
    unsigned int packet_frag_size;
64
    int64_t packet_frag_timestamp;
65
    int packet_multi_size;
66
    int packet_obj_size;
67
    int packet_time_delta;
68
    int packet_time_start;
69
    int64_t packet_pos;
70

  
71
    int stream_index;
72

  
73
    ASFStream* asf_st;                   ///< currently decoded stream
74
} ASFContext;
75

  
35 76
#undef NDEBUG
36 77
#include <assert.h>
37 78

  

Also available in: Unified diff