diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2006-04-20 22:17:11 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2006-04-20 22:17:11 +0000 |
commit | c2ea5f060ca0cc76574ee9bd6e3e96af7cdb0e77 (patch) | |
tree | 2654375f7b690bc09b2bd34c6627468433270c43 /libavformat/mmf.c | |
parent | 4f26258f848e2a607f5f26288012492977c2930e (diff) | |
download | ffmpeg-c2ea5f060ca0cc76574ee9bd6e3e96af7cdb0e77.tar.gz |
report to user if mmf with midi found (and not supported)
Originally committed as revision 5308 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mmf.c')
-rw-r--r-- | libavformat/mmf.c | 4 |
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; |