# HG changeset patch # User aurel # Date 1166657630 0 # Node ID ffb64cb62cc9aefd19c9e9b90ae4f19a808154d1 # Parent 6f13826a5037d8ead899c47277adb63bedb1dfa7 Fix a crash when probing img2 format with a NULL filename. patch by elupus _at_ ecce.se diff -r 6f13826a5037 -r ffb64cb62cc9 img2.c --- a/img2.c Sun Dec 17 22:00:12 2006 +0000 +++ b/img2.c Wed Dec 20 23:33:50 2006 +0000 @@ -154,7 +154,7 @@ static int image_probe(AVProbeData *p) { - if (av_str2id(img_tags, p->filename)) { + if (p->filename && av_str2id(img_tags, p->filename)) { if (av_filename_number_test(p->filename)) return AVPROBE_SCORE_MAX; else