comparison electronicarts.c @ 1673:a782462e2497 libavformat

rename BE/LE_8/16/32 to AV_RL/B_8/16/32
author alex
date Fri, 19 Jan 2007 22:12:59 +0000
parents 0899bfe4105c
children 1a3c9056982a
comparison
equal deleted inserted replaced
1672:818eafa8fc95 1673:a782462e2497
166 static int ea_probe(AVProbeData *p) 166 static int ea_probe(AVProbeData *p)
167 { 167 {
168 if (p->buf_size < 4) 168 if (p->buf_size < 4)
169 return 0; 169 return 0;
170 170
171 if (LE_32(&p->buf[0]) != SCHl_TAG) 171 if (AV_RL32(&p->buf[0]) != SCHl_TAG)
172 return 0; 172 return 0;
173 173
174 return AVPROBE_SCORE_MAX; 174 return AVPROBE_SCORE_MAX;
175 } 175 }
176 176
228 228
229 while (!packet_read) { 229 while (!packet_read) {
230 230
231 if (get_buffer(pb, preamble, EA_PREAMBLE_SIZE) != EA_PREAMBLE_SIZE) 231 if (get_buffer(pb, preamble, EA_PREAMBLE_SIZE) != EA_PREAMBLE_SIZE)
232 return AVERROR_IO; 232 return AVERROR_IO;
233 chunk_type = LE_32(&preamble[0]); 233 chunk_type = AV_RL32(&preamble[0]);
234 chunk_size = LE_32(&preamble[4]) - EA_PREAMBLE_SIZE; 234 chunk_size = AV_RL32(&preamble[4]) - EA_PREAMBLE_SIZE;
235 235
236 switch (chunk_type) { 236 switch (chunk_type) {
237 /* audio data */ 237 /* audio data */
238 case SCDl_TAG: 238 case SCDl_TAG:
239 ret = av_get_packet(pb, pkt, chunk_size); 239 ret = av_get_packet(pb, pkt, chunk_size);