Mercurial > libavformat.hg
diff mmf.c @ 1065:fab79efcd476 libavformat
report to user if mmf with midi found (and not supported)
| author | alex |
|---|---|
| date | Thu, 20 Apr 2006 22:17:11 +0000 |
| parents | 5d1bcf01ce28 |
| children | e3a585883bbd |
line wrap: on
line diff
--- a/mmf.c Thu Apr 20 10:38:15 2006 +0000 +++ b/mmf.c Thu Apr 20 22:17:11 2006 +0000 @@ -202,6 +202,10 @@ } /* 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;
