提交 39fe9d79 编写于 作者: A Aurelien Jacobs

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
上级 ef59bf60
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册