OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef59bf6
)
convert a if() into a switch() to ease addition of new tags to probe
author
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 22 Oct 2007 21:06:04 +0000
(21:06 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 22 Oct 2007 21:06:04 +0000
(21:06 +0000)
Originally committed as revision 10843 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/electronicarts.c
patch
|
blob
|
history
diff --git
a/libavformat/electronicarts.c
b/libavformat/electronicarts.c
index
7cf15ef
..
b4c14e0
100644
(file)
--- a/
libavformat/electronicarts.c
+++ b/
libavformat/electronicarts.c
@@
-227,12
+227,11
@@
static int process_ea_header(AVFormatContext *s) {
static int ea_probe(AVProbeData *p)
{
- uint32_t tag;
-
- tag = AV_RL32(&p->buf[0]);
- if (tag == SCHl_TAG || tag == MVhd_TAG)
+ switch (AV_RL32(&p->buf[0])) {
+ case SCHl_TAG:
+ case MVhd_TAG:
return AVPROBE_SCORE_MAX;
-
+ }
return 0;
}