[FFmpeg-cvslog] r10795 - trunk/libavformat/electronicarts.c
aurel
subversion
Fri Oct 19 00:39:28 CEST 2007
Author: aurel
Date: Fri Oct 19 00:39:27 2007
New Revision: 10795
Log:
add support for big_endian encoded headers
Modified:
trunk/libavformat/electronicarts.c
Modified: trunk/libavformat/electronicarts.c
==============================================================================
--- trunk/libavformat/electronicarts.c (original)
+++ trunk/libavformat/electronicarts.c Fri Oct 19 00:39:27 2007
@@ -40,6 +40,8 @@
#define EA_PREAMBLE_SIZE 8
typedef struct EaDemuxContext {
+ int big_endian;
+
int video_codec;
AVRational time_base;
int video_stream_index;
@@ -170,6 +172,10 @@ static int process_ea_header(AVFormatCon
blockid = get_le32(pb);
size = get_le32(pb);
+ if (i == 0)
+ ea->big_endian = size > 0x000FFFFF;
+ if (ea->big_endian)
+ size = bswap_32(size);
switch (blockid) {
case SCHl_TAG :
More information about the ffmpeg-cvslog
mailing list