[FFmpeg-cvslog] r19896 - trunk/libavformat/electronicarts.c
reimar
subversion
Thu Sep 17 20:07:27 CEST 2009
Author: reimar
Date: Thu Sep 17 20:07:27 2009
New Revision: 19896
Log:
Slightly improve probe for ea format by checking that it is possible to
guess whether the file is little- or big-endian.
Modified:
trunk/libavformat/electronicarts.c
Modified: trunk/libavformat/electronicarts.c
==============================================================================
--- trunk/libavformat/electronicarts.c Thu Sep 17 20:06:03 2009 (r19895)
+++ trunk/libavformat/electronicarts.c Thu Sep 17 20:07:27 2009 (r19896)
@@ -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,
More information about the ffmpeg-cvslog
mailing list