mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/electronicarts: detect endianness by comparing sizes instead of using an arbitrary threshold
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a07d4bc80a
commit
55328d5f72
@ -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…
Reference in New Issue
Block a user