diff --git a/libavformat/asf.c b/libavformat/asf.c
index faa0d6916afbe4843934cf3a92b1d076cace9391..dc6557402a9723609e03e359e90a9b61408d9a2f 100644
--- a/libavformat/asf.c
+++ b/libavformat/asf.c
@@ -227,7 +227,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
             } else if (!memcmp(&g, &video_stream, sizeof(GUID))) {
                 type = CODEC_TYPE_VIDEO;
             } else if (!memcmp(&g, &command_stream, sizeof(GUID))) {
-                type = CODEC_TYPE_UNKNOWN;
+                type = CODEC_TYPE_DATA;
             } else if (!memcmp(&g, &ext_stream_embed_stream_header, sizeof(GUID))) {
                 test_for_ext_stream_audio = 1;
                 type = CODEC_TYPE_UNKNOWN;