Browse Source

Slightly improve probe for ea format by checking that it is possible to

guess whether the file is little- or big-endian.

Originally committed as revision 19896 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Reimar Döffinger 16 years ago
parent
commit
892d7e78ef
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      libavformat/electronicarts.c

+ 6
- 2
libavformat/electronicarts.c View File

@@ -389,9 +389,13 @@ static int ea_probe(AVProbeData *p)
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,


Loading…
Cancel
Save