Commit 55328d5f authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/electronicarts: detect endianness by comparing sizes instead of using...

avformat/electronicarts: detect endianness by comparing sizes instead of using an arbitrary threshold
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a07d4bc8
......@@ -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);
......
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