Browse Source

- libdvbsi++: add patch to fix descriptorLength; thx to satbaby

master
vanhofen 6 years ago
parent
commit
53f031344c
  1. 14
      archive-patches/libdvbsi++-fix-descriptorLenghth.patch
  2. 1
      make/system-libs.mk

14
archive-patches/libdvbsi++-fix-descriptorLenghth.patch

@ -0,0 +1,14 @@
diff --git a/src/descriptor.cpp b/src/descriptor.cpp
index 8c914a9..beaf4d7 100644
--- a/src/descriptor.cpp
+++ b/src/descriptor.cpp
@@ -17,6 +17,9 @@ Descriptor::Descriptor(const uint8_t * const buffer)
descriptorTag = buffer[0];
descriptorLength = buffer[1];
+ if (!descriptorLength)
+ descriptorLength = 1;
+
dataBytes.resize(descriptorLength);
memcpy(&dataBytes[0], &buffer[2], descriptorLength);

1
make/system-libs.mk

@ -78,6 +78,7 @@ $(D)/libupnp: $(ARCHIVE)/libupnp-$(LIBUPNP_VER).tar.bz2 | $(TARGET_DIR)
# -----------------------------------------------------------------------------
LIBDVBSI_PATCH = libdvbsi++-content_identifier_descriptor.patch
LIBDVBSI_PATCH += libdvbsi++-fix-descriptorLenghth.patch
$(D)/libdvbsi: | $(TARGET_DIR)
$(REMOVE)/libdvbsi++

Loading…
Cancel
Save