[Ffmpeg-cvslog] r7219 - trunk/libavformat/img2.c
bcoudurier
subversion
Mon Dec 4 12:42:48 CET 2006
Author: bcoudurier
Date: Mon Dec 4 12:42:48 2006
New Revision: 7219
Modified:
trunk/libavformat/img2.c
Log:
probe with some success image files not containing number pattern but having recognized image extension
Modified: trunk/libavformat/img2.c
==============================================================================
--- trunk/libavformat/img2.c (original)
+++ trunk/libavformat/img2.c Mon Dec 4 12:42:48 2006
@@ -154,10 +154,13 @@
static int image_probe(AVProbeData *p)
{
- if (av_filename_number_test(p->filename) && av_str2id(img_tags, p->filename))
- return AVPROBE_SCORE_MAX;
- else
- return 0;
+ if (av_str2id(img_tags, p->filename)) {
+ if (av_filename_number_test(p->filename))
+ return AVPROBE_SCORE_MAX;
+ else
+ return AVPROBE_SCORE_MAX/2;
+ }
+ return 0;
}
enum CodecID av_guess_image2_codec(const char *filename){
More information about the ffmpeg-cvslog
mailing list