Commit d61454e7 authored by Alexander Strasser's avatar Alexander Strasser Committed by Michael Niedermayer
Browse files

avformat/img2dec: Attempt to detect non-escaped glob patterns too (-pattern_type glob)


Fixes ticket #3948

Based-on-patch-by: default avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: default avatarAlexander Strasser <eclipse7@gmx.net>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e079d43a

)

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
Showing with 2 additions and 0 deletions
......@@ -162,6 +162,8 @@ static int img_read_probe(AVProbeData *p)
return AVPROBE_SCORE_MAX;
else if (is_glob(p->filename))
return AVPROBE_SCORE_MAX;
else if (p->filename[strcspn(p->filename, "*?{")]) // probably PT_GLOB
return AVPROBE_SCORE_EXTENSION + 2; // score chosen to be a tad above the image pipes
else if (p->buf_size == 0)
return 0;
else if (av_match_ext(p->filename, "raw") || av_match_ext(p->filename, "gif"))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment