aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-21 14:09:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-21 14:09:45 +0100
commit55328d5f7246d0f0e3892e253ac28600d1db75df (patch)
treee9c3e869c2a99859fdf0421f292fff3e008e45af /libavformat
parenta07d4bc80a7b48f316b67523bf5f75a2702ed785 (diff)
downloadffmpeg-55328d5f7246d0f0e3892e253ac28600d1db75df.tar.gz
avformat/electronicarts: detect endianness by comparing sizes instead of using an arbitrary threshold
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/electronicarts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index d01883f3c3..4ba0fa0b61 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -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);