comparison wc3movie.c @ 2786:6050822262f6 libavformat

1000l _reserved (found by checktree.sh)
author michael
date Sat, 01 Dec 2007 00:07:51 +0000
parents d52c718e83f9
children b74cbb146e2d
comparison
equal deleted inserted replaced
2785:d3b3cfb538d8 2786:6050822262f6
31 31
32 #define WC3_PREAMBLE_SIZE 8 32 #define WC3_PREAMBLE_SIZE 8
33 33
34 #define FORM_TAG MKTAG('F', 'O', 'R', 'M') 34 #define FORM_TAG MKTAG('F', 'O', 'R', 'M')
35 #define MOVE_TAG MKTAG('M', 'O', 'V', 'E') 35 #define MOVE_TAG MKTAG('M', 'O', 'V', 'E')
36 #define _PC__TAG MKTAG('_', 'P', 'C', '_') 36 #define PC__TAG MKTAG('_', 'P', 'C', '_')
37 #define SOND_TAG MKTAG('S', 'O', 'N', 'D') 37 #define SOND_TAG MKTAG('S', 'O', 'N', 'D')
38 #define BNAM_TAG MKTAG('B', 'N', 'A', 'M') 38 #define BNAM_TAG MKTAG('B', 'N', 'A', 'M')
39 #define SIZE_TAG MKTAG('S', 'I', 'Z', 'E') 39 #define SIZE_TAG MKTAG('S', 'I', 'Z', 'E')
40 #define PALT_TAG MKTAG('P', 'A', 'L', 'T') 40 #define PALT_TAG MKTAG('P', 'A', 'L', 'T')
41 #define INDX_TAG MKTAG('I', 'N', 'D', 'X') 41 #define INDX_TAG MKTAG('I', 'N', 'D', 'X')
163 case INDX_TAG: 163 case INDX_TAG:
164 /* SOND unknown, INDX unnecessary; ignore both */ 164 /* SOND unknown, INDX unnecessary; ignore both */
165 url_fseek(pb, size, SEEK_CUR); 165 url_fseek(pb, size, SEEK_CUR);
166 break; 166 break;
167 167
168 case _PC__TAG: 168 case PC__TAG:
169 /* need the number of palettes */ 169 /* need the number of palettes */
170 url_fseek(pb, 8, SEEK_CUR); 170 url_fseek(pb, 8, SEEK_CUR);
171 if ((ret = get_buffer(pb, preamble, 4)) != 4) 171 if ((ret = get_buffer(pb, preamble, 4)) != 4)
172 return AVERROR(EIO); 172 return AVERROR(EIO);
173 wc3->palette_count = AV_RL32(&preamble[0]); 173 wc3->palette_count = AV_RL32(&preamble[0]);