[FFmpeg-cvslog] r10801 - trunk/libavformat/electronicarts.c
aurel
subversion
Fri Oct 19 01:22:51 CEST 2007
Author: aurel
Date: Fri Oct 19 01:22:50 2007
New Revision: 10801
Log:
fix big endian files support
Modified:
trunk/libavformat/electronicarts.c
Modified: trunk/libavformat/electronicarts.c
==============================================================================
--- trunk/libavformat/electronicarts.c (original)
+++ trunk/libavformat/electronicarts.c Fri Oct 19 01:22:50 2007
@@ -290,7 +290,7 @@ static int ea_read_packet(AVFormatContex
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 */
More information about the ffmpeg-cvslog
mailing list