changeset 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 6f13826a5037
children 862df89dda4a
files img2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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