From c2ea5f060ca0cc76574ee9bd6e3e96af7cdb0e77 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 20 Apr 2006 22:17:11 +0000 Subject: report to user if mmf with midi found (and not supported) Originally committed as revision 5308 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mmf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavformat/mmf.c') 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; -- cgit v1.2.3