projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf1e119
)
probe with some success image files not containing number pattern but having recogniz...
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Mon, 4 Dec 2006 11:42:48 +0000
(11:42 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Mon, 4 Dec 2006 11:42:48 +0000
(11:42 +0000)
Originally committed as revision 7219 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/img2.c
patch
|
blob
|
history
diff --git
a/libavformat/img2.c
b/libavformat/img2.c
index 303190ad24b687cf855e38d9a472bee52be43e48..770858406744131ed597cccc2255b77607c68e05 100644
(file)
--- a/
libavformat/img2.c
+++ b/
libavformat/img2.c
@@
-154,10
+154,13
@@
static int find_image_range(int *pfirst_index, int *plast_index,
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){