summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/mmf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mmf.c b/libavformat/mmf.c
index bf9aa91043..111ef59837 100644
--- a/libavformat/mmf.c
+++ b/libavformat/mmf.c
@@ -202,6 +202,10 @@ static int mmf_read_header(AVFormatContext *s,
}
/* Tag = "ATRx", where "x" = track number */
+ if ((tag & 0xffffff) == MKTAG('M', 'T', 'R', 0)) {
+ av_log(s, AV_LOG_ERROR, "MIDI like format found, unsupported\n");
+ return -1;
+ }
if ((tag & 0xffffff) != MKTAG('A', 'T', 'R', 0)) {
av_log(s, AV_LOG_ERROR, "Unsupported SMAF chunk %08x\n", tag);
return -1;