[bTSstream-devel] smpte: Fix SMPTE FEC issues
Kieran Kunhya
git at videolan.org
Tue Mar 22 17:32:37 CET 2016
bitstream | branch: master | Kieran Kunhya <kierank at obe.tv> | Tue Aug 25 10:23:40 2015 +0100| [d7339a49e7a05d66f101b50179dfe9db27de89ad] | committer: Kieran Kunhya
smpte: Fix SMPTE FEC issues
> http://git.videolan.org/gitweb.cgi/bitstream.git/?a=commit;h=d7339a49e7a05d66f101b50179dfe9db27de89ad
---
Makefile | 2 ++
smpte/2022_1_fec.h | 10 ++++++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 206861a..288949a 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,8 @@ install:
@install -m 644 mpeg/psi/*.h $(INCLUDE)/mpeg/psi
@install -d $(INCLUDE)/scte
@install -m 644 scte/*.h $(INCLUDE)/scte
+ @install -d $(INCLUDE)/smpte
+ @install -m 644 smpte/*.h $(INCLUDE)/smpte
uninstall:
@echo "REMOVE $(INCLUDE)"
diff --git a/smpte/2022_1_fec.h b/smpte/2022_1_fec.h
index dc10e27..988b760 100644
--- a/smpte/2022_1_fec.h
+++ b/smpte/2022_1_fec.h
@@ -41,6 +41,8 @@ extern "C"
{
#endif
+#define SMPTE_2022_FEC_HEADER_SIZE 16
+
/*
* Reminder : FEC Header
0 1 2 3
@@ -99,10 +101,10 @@ static inline uint8_t smpte_fec_get_pt_recovery(const uint8_t *p_fec)
static inline void smpte_fec_set_ts_recovery(uint8_t *p_fec, uint32_t snbase)
{
- p_fec[8] = snbase >> 24;
- p_fec[9] = snbase >> 16;
- p_fec[10] = snbase >> 8;
- p_fec[11] = snbase & 0xff;
+ p_fec[8] = (snbase >> 24) & 0xff;
+ p_fec[9] = (snbase >> 16) & 0xff;
+ p_fec[10] = (snbase >> 8) & 0xff;
+ p_fec[11] = (snbase >> 0) & 0xff;
}
static inline uint32_t smpte_fec_get_ts_recovery(const uint8_t *p_fec)
More information about the biTStream-devel
mailing list