changeset 2641:9725a5726fec libavformat

fix big endian files support
author aurel
date Thu, 18 Oct 2007 23:22:50 +0000
parents 2947743d78be
children 6a53777da0c9
files electronicarts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/electronicarts.c	Thu Oct 18 23:21:31 2007 +0000
+++ b/electronicarts.c	Thu Oct 18 23:22:50 2007 +0000
@@ -290,7 +290,7 @@
 
     while (!packet_read) {
         chunk_type = get_le32(pb);
-        chunk_size = get_le32(pb) - 8;
+        chunk_size = (ea->big_endian ? get_be32(pb) : get_le32(pb)) - 8;
 
         switch (chunk_type) {
         /* audio data */