Commit 11e21b22 authored by aurel's avatar aurel

convert a if() into a switch() to ease addition of new tags to probe

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10843 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 229ddfb5
...@@ -227,12 +227,11 @@ static int process_ea_header(AVFormatContext *s) { ...@@ -227,12 +227,11 @@ static int process_ea_header(AVFormatContext *s) {
static int ea_probe(AVProbeData *p) static int ea_probe(AVProbeData *p)
{ {
uint32_t tag; switch (AV_RL32(&p->buf[0])) {
case SCHl_TAG:
tag = AV_RL32(&p->buf[0]); case MVhd_TAG:
if (tag == SCHl_TAG || tag == MVhd_TAG)
return AVPROBE_SCORE_MAX; return AVPROBE_SCORE_MAX;
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment