Commit 7815b8bb authored by aurel's avatar aurel

add support for big_endian encoded headers

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10795 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 13a2356a
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#define EA_PREAMBLE_SIZE 8 #define EA_PREAMBLE_SIZE 8
typedef struct EaDemuxContext { typedef struct EaDemuxContext {
int big_endian;
int video_codec; int video_codec;
AVRational time_base; AVRational time_base;
int video_stream_index; int video_stream_index;
...@@ -170,6 +172,10 @@ static int process_ea_header(AVFormatContext *s) { ...@@ -170,6 +172,10 @@ static int process_ea_header(AVFormatContext *s) {
blockid = get_le32(pb); blockid = get_le32(pb);
size = 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) { switch (blockid) {
case SCHl_TAG : case SCHl_TAG :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment