mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
report to user if mmf with midi found (and not supported)
Originally committed as revision 5308 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4f26258f84
commit
c2ea5f060c
@ -202,6 +202,10 @@ static int mmf_read_header(AVFormatContext *s,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Tag = "ATRx", where "x" = track number */
|
/* 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)) {
|
if ((tag & 0xffffff) != MKTAG('A', 'T', 'R', 0)) {
|
||||||
av_log(s, AV_LOG_ERROR, "Unsupported SMAF chunk %08x\n", tag);
|
av_log(s, AV_LOG_ERROR, "Unsupported SMAF chunk %08x\n", tag);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user