diff --git a/ffplay.c b/ffplay.c
index 5972a5bd2e0267974412f2d9b4a1e234eac0f377..f340153f803fb7eea56ce258ac7ba3db130fc683 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1660,6 +1660,8 @@ void show_help(void)
 
 void parse_arg_file(const char *filename)
 {
+    if (!strcmp(filename, "-"))
+                    filename = "pipe:";
     input_filename = filename;
 }