summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-07-26 22:23:50 +0200
committerRobin Gareus <robin@gareus.org>2017-07-26 22:58:12 +0200
commitb804109e8ec24e6c2201e4e317ca91ed01ba5245 (patch)
tree518fdc280fb33c177e3cd48be2cc459308673702
parent2fa34614d038e61e0c37144d95092c169fe2d0cc (diff)
update libltc
-rw-r--r--libs/libltc/decoder.c6
-rw-r--r--libs/libltc/ltc.c4
-rw-r--r--libs/libltc/ltc/ltc.h12
3 files changed, 11 insertions, 11 deletions
diff --git a/libs/libltc/decoder.c b/libs/libltc/decoder.c
index 29e4a32ef0..7ba2a6c4f9 100644
--- a/libs/libltc/decoder.c
+++ b/libs/libltc/decoder.c
@@ -2,7 +2,7 @@
libltc - en+decode linear timecode
Copyright (C) 2005 Maarten de Boer <mdeboer@iua.upf.es>
- Copyright (C) 2006-2012 Robin Gareus <robin@gareus.org>
+ Copyright (C) 2006-2016 Robin Gareus <robin@gareus.org>
Copyright (C) 2008-2009 Jan <jan@geheimwerk.de>
Binary constant generator macro for endianess conversion
@@ -107,7 +107,7 @@ static double calc_volume_db(LTCDecoder *d) {
return (20.0 * log10((d->snd_to_biphase_max - d->snd_to_biphase_min) / 255.0));
}
-static void parse_ltc(LTCDecoder *d, unsigned char bit, int offset, ltc_off_t posinfo) {
+static void parse_ltc(LTCDecoder *d, unsigned char bit, ltc_off_t offset, ltc_off_t posinfo) {
int bit_num, bit_set, byte_num;
if (d->bit_cnt == 0) {
@@ -248,7 +248,7 @@ static void parse_ltc(LTCDecoder *d, unsigned char bit, int offset, ltc_off_t po
}
}
-static inline void biphase_decode2(LTCDecoder *d, int offset, ltc_off_t pos) {
+static inline void biphase_decode2(LTCDecoder *d, ltc_off_t offset, ltc_off_t pos) {
d->biphase_tics[d->biphase_tic] = d->snd_to_biphase_period;
d->biphase_tic = (d->biphase_tic + 1) % LTC_FRAME_BIT_COUNT;
diff --git a/libs/libltc/ltc.c b/libs/libltc/ltc.c
index 1a662f9744..ca7382d15d 100644
--- a/libs/libltc/ltc.c
+++ b/libs/libltc/ltc.c
@@ -1,7 +1,7 @@
/*
libltc - en+decode linear timecode
- Copyright (C) 2006-2012 Robin Gareus <robin@gareus.org>
+ Copyright (C) 2006-2015 Robin Gareus <robin@gareus.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
@@ -191,7 +191,7 @@ int ltc_encoder_reinit(LTCEncoder *e, double sample_rate, double fps, enum LTC_T
ltc_frame_set_parity(&e->f, standard);
}
- if (rint(fps*100) == 2997)
+ if ((int)rint(fps * 100.0) == 2997)
e->f.dfbit = 1;
else
e->f.dfbit = 0;
diff --git a/libs/libltc/ltc/ltc.h b/libs/libltc/ltc/ltc.h
index 726b0ca9f7..1f6eaffb6d 100644
--- a/libs/libltc/ltc/ltc.h
+++ b/libs/libltc/ltc/ltc.h
@@ -63,16 +63,16 @@ extern "C" {
#ifndef DOXYGEN_IGNORE
/* libltc version */
-#define LIBLTC_VERSION "1.1.4"
+#define LIBLTC_VERSION "1.3.0"
#define LIBLTC_VERSION_MAJOR 1
-#define LIBLTC_VERSION_MINOR 1
-#define LIBLTC_VERSION_MICRO 4
+#define LIBLTC_VERSION_MINOR 3
+#define LIBLTC_VERSION_MICRO 0
/* interface revision number
* http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
*/
#define LIBLTC_CUR 11
-#define LIBLTC_REV 3
+#define LIBLTC_REV 5
#define LIBLTC_AGE 0
#endif /* end DOXYGEN_IGNORE */
@@ -277,7 +277,7 @@ typedef struct LTCFrame LTCFrame;
/**
* Extended LTC frame - includes audio-sample position offsets, volume, etc
*
- * Note: For TV systems, the sample in the LTC audio data stream where the LTC Frame starts is not neccesarily at the same time
+ * Note: For TV systems, the sample in the LTC audio data stream where the LTC Frame starts is not necessarily at the same time
* as the video-frame which is described by the LTC Frame.
*
* \ref off_start denotes the time of the first transition of bit 0 in the LTC frame.
@@ -674,7 +674,7 @@ int ltc_encoder_set_bufsize(LTCEncoder *e, double sample_rate, double fps);
* typically LTC is sent at 0dBu ; in EBU callibrated systems that
* corresponds to -18dBFS. - by default libltc creates -3dBFS
*
- * since libltc generated 8bit audio-data, the minium dBFS
+ * since libltc generated 8bit audio-data, the minimum dBFS
* is about -42dB which corresponds to 1 bit.
*
* 0dB corresponds to a signal range of 127