# HG changeset patch # User bcoudurier # Date 1165232568 0 # Node ID ee4ef413497e159a7293d353a2ffb8c07c84a256 # Parent 4cb185273d4b91346868df291e2421ec579e2486 probe with some success image files not containing number pattern but having recognized image extension diff -r 4cb185273d4b -r ee4ef413497e img2.c --- a/img2.c Sun Dec 03 05:47:55 2006 +0000 +++ b/img2.c Mon Dec 04 11:42:48 2006 +0000 @@ -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){