projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26d9f8f
)
simplified smpte check
author
Paul Brossier
<piem@altern.org>
Tue, 27 Sep 2005 19:15:11 +0000
(19:15 +0000)
committer
Paul Brossier
<piem@altern.org>
Tue, 27 Sep 2005 19:15:11 +0000
(19:15 +0000)
simplified smpte check
ext/midi/midi_file.c
patch
|
blob
|
history
diff --git
a/ext/midi/midi_file.c
b/ext/midi/midi_file.c
index fb88c007a4cb31d015f5cdc9826e79761ffd301b..58751bc899df4b5e8848effa946affbce3aa82d1 100644
(file)
--- a/
ext/midi/midi_file.c
+++ b/
ext/midi/midi_file.c
@@
-158,7
+158,7
@@
int aubio_midi_file_read_mthd(aubio_midi_file_t* mf)
mf->ntracks = (unsigned) mthd[11];
mf->ntracks += (unsigned int) (mthd[10]) << 16;
/** \bug: smpte timing not yet implemented */
- if(
(int)(mthd[12]) < 0
){
+ if(
!mthd[12]
){
/*if((mthd[12]) < 0){*/
mf->uses_smpte = 1;
mf->smpte_fps = -mthd[12];