update libltc
authorRobin Gareus <robin@gareus.org>
Wed, 26 Jul 2017 20:23:50 +0000 (22:23 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 26 Jul 2017 20:58:12 +0000 (22:58 +0200)
libs/libltc/decoder.c
libs/libltc/ltc.c
libs/libltc/ltc/ltc.h

index 29e4a32ef0854160f13aed3e4d1fc587d8941eff..7ba2a6c4f9da67b0bf96f7cf253cd04bf645de69 100644 (file)
@@ -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;
index 1a662f9744a04aa594c50106145ab7fea07dc019..ca7382d15d42498c609545d9e9278a2fdffe43ea 100644 (file)
@@ -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;
index 726b0ca9f7152b16671f013431fbb3d762f61e92..1f6eaffb6d8b70f734a7c893e0cf0e711a142ecb 100644 (file)
@@ -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