diff img2.c @ 1594:ffb64cb62cc9 libavformat

Fix a crash when probing img2 format with a NULL filename. patch by elupus _at_ ecce.se
author aurel
date Wed, 20 Dec 2006 23:33:50 +0000
parents ee4ef413497e
children eb16c64144ee
line wrap: on
line diff
--- 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