projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5083f6
)
Slightly improve probe for ea format by checking that it is possible to
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 17 Sep 2009 18:07:27 +0000
(18:07 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 17 Sep 2009 18:07:27 +0000
(18:07 +0000)
guess whether the file is little- or big-endian.
Originally committed as revision 19896 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/electronicarts.c
patch
|
blob
|
history
diff --git
a/libavformat/electronicarts.c
b/libavformat/electronicarts.c
index
9f82e62
..
13f6f21
100644
(file)
--- a/
libavformat/electronicarts.c
+++ b/
libavformat/electronicarts.c
@@
-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,