Mercurial > libavformat.hg
comparison electronicarts.c @ 2641:9725a5726fec libavformat
fix big endian files support
author | aurel |
---|---|
date | Thu, 18 Oct 2007 23:22:50 +0000 |
parents | 2947743d78be |
children | 6a53777da0c9 |
comparison
equal
deleted
inserted
replaced
2640:2947743d78be | 2641:9725a5726fec |
---|---|
288 unsigned int chunk_type, chunk_size; | 288 unsigned int chunk_type, chunk_size; |
289 int key = 0; | 289 int key = 0; |
290 | 290 |
291 while (!packet_read) { | 291 while (!packet_read) { |
292 chunk_type = get_le32(pb); | 292 chunk_type = get_le32(pb); |
293 chunk_size = get_le32(pb) - 8; | 293 chunk_size = (ea->big_endian ? get_be32(pb) : get_le32(pb)) - 8; |
294 | 294 |
295 switch (chunk_type) { | 295 switch (chunk_type) { |
296 /* audio data */ | 296 /* audio data */ |
297 case SCDl_TAG: | 297 case SCDl_TAG: |
298 ret = av_get_packet(pb, pkt, chunk_size); | 298 ret = av_get_packet(pb, pkt, chunk_size); |