Browse Source

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

Originally committed as revision 10843 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Aurelien Jacobs 18 years ago
parent
commit
39fe9d79ad
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      libavformat/electronicarts.c

+ 4
- 5
libavformat/electronicarts.c View File

@@ -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;
}



Loading…
Cancel
Save