Ignore sub-frames component in MMC relocate message.

This commit is contained in:
Alexandre Ratchov 2019-06-16 15:35:06 +02:00
parent e6587d3b97
commit 74abe4dcc7
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,8 @@
#define MIDI_BUFSZ 3125 /* 1 second at 31.25kbit/s */
/*
* units used for MTC clock.
* units used for MTC clock. Must allow a quarter of frame to be
* represented at any of the standard 24, 25, or 30 fps.
*/
#define MTC_SEC 2400 /* 1 second is 2400 ticks */

View File

@ -474,8 +474,7 @@ dev_midi_omsg(void *arg, unsigned char *msg, int len)
(x->u.loc.hr & 0x1f) * 3600 * MTC_SEC +
x->u.loc.min * 60 * MTC_SEC +
x->u.loc.sec * MTC_SEC +
x->u.loc.fr * (MTC_SEC / fps) +
x->u.loc.cent * (MTC_SEC / 100 / fps));
x->u.loc.fr * (MTC_SEC / fps));
break;
}
break;