37 #define FORM_TAG MKTAG('F', 'O', 'R', 'M')
38 #define MOVE_TAG MKTAG('M', 'O', 'V', 'E')
39 #define PC__TAG MKTAG('_', 'P', 'C', '_')
40 #define SOND_TAG MKTAG('S', 'O', 'N', 'D')
41 #define BNAM_TAG MKTAG('B', 'N', 'A', 'M')
42 #define SIZE_TAG MKTAG('S', 'I', 'Z', 'E')
43 #define PALT_TAG MKTAG('P', 'A', 'L', 'T')
44 #define INDX_TAG MKTAG('I', 'N', 'D', 'X')
45 #define BRCH_TAG MKTAG('B', 'R', 'C', 'H')
46 #define SHOT_TAG MKTAG('S', 'H', 'O', 'T')
47 #define VGA__TAG MKTAG('V', 'G', 'A', ' ')
48 #define TEXT_TAG MKTAG('T', 'E', 'X', 'T')
49 #define AUDI_TAG MKTAG('A', 'U', 'D', 'I')
52 #define WC3_DEFAULT_WIDTH 320
53 #define WC3_DEFAULT_HEIGHT 165
56 #define WC3_SAMPLE_RATE 22050
57 #define WC3_AUDIO_CHANNELS 1
58 #define WC3_AUDIO_BITS 16
61 #define WC3_FRAME_FPS 15
63 #define PALETTE_SIZE (256 * 3)
92 unsigned int fourcc_tag;
115 switch (fourcc_tag) {
133 if ((ret =
avio_read(pb, buffer, size)) != size)
203 unsigned int fourcc_tag;
207 unsigned char text[1024];
209 while (!packet_read) {
217 switch (fourcc_tag) {
248 if ((
unsigned)size >
sizeof(text) || (ret =
avio_read(pb, text, size)) != size)
253 if (i >= size ||
av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1)
257 if (i >= size ||
av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1)
261 if (i >= size ||
av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1)