diff --git a/libavformat/utils.c b/libavformat/utils.c
index a93a9543ebb0524b265c3d58b466e32a15ad522c..252a7974b076e26cfe88a42a3b3d9bc55496f4cc 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -336,6 +336,9 @@ static int set_codec_from_probe_data(AVStream *st, AVProbeData *pd, int score)
         } else if (!strcmp(fmt->name, "h264")) {
             st->codec->codec_id = CODEC_ID_H264;
             st->codec->codec_type = CODEC_TYPE_VIDEO;
+        } else if (!strcmp(fmt->name, "dts")) {
+            st->codec->codec_id = CODEC_ID_DTS;
+            st->codec->codec_type = CODEC_TYPE_AUDIO;
         }
     }
     return !!fmt;