diff --git a/avprobe.c b/avprobe.c
index c56ac27efaa9bb76dbfbac5d4ecf5b5eef7003fd..5fc9ad56943dc22447a1c70b699089536d812c8d 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -181,7 +181,7 @@ static void ini_print_object_header(const char *name)
     }
 
     avio_printf(probe_out, "%s", name);
-    if (el && el->type == ARRAY)
+    if (el->type == ARRAY)
         avio_printf(probe_out, ".%"PRId64"", el->nb_elems);
     avio_printf(probe_out, "]\n");
 }