# HG changeset patch # User reimar # Date 1253210847 0 # Node ID 6fc9f9d8aaa1b1f07fe3f32482e53138c4bd91ec # Parent dd04eacd063b336da75ff16afad20e235a9ab6e5 Slightly improve probe for ea format by checking that it is possible to guess whether the file is little- or big-endian. diff -r dd04eacd063b -r 6fc9f9d8aaa1 electronicarts.c --- a/electronicarts.c Thu Sep 17 05:31:02 2009 +0000 +++ b/electronicarts.c Thu Sep 17 18:07:27 2009 +0000 @@ -389,9 +389,13 @@ case MPCh_TAG: case MVhd_TAG: case MVIh_TAG: - return AVPROBE_SCORE_MAX; + break; + default: + return 0; } - return 0; + if (AV_RL32(&p->buf[4]) > 0xfffff && AV_RB32(&p->buf[4]) > 0xfffff) + return 0; + return AVPROBE_SCORE_MAX; } static int ea_read_header(AVFormatContext *s,