Browse Source

avformat/electronicarts: detect endianness by comparing sizes instead of using an arbitrary threshold

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
55328d5f72
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/electronicarts.c

+ 1
- 1
libavformat/electronicarts.c View File

@@ -357,7 +357,7 @@ static int process_ea_header(AVFormatContext *s)
blockid = avio_rl32(pb);
size = avio_rl32(pb);
if (i == 0)
ea->big_endian = size > 0x000FFFFF;
ea->big_endian = size > av_bswap32(size);
if (ea->big_endian)
size = av_bswap32(size);



Loading…
Cancel
Save