diff options
author | Juergen Lock <nox@FreeBSD.org> | 2014-04-19 23:11:35 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2014-04-19 23:11:35 +0000 |
commit | 658ec3c2ed14b54fe3bd27d2c66fbb5fb4d716cf (patch) | |
tree | 3bf3f8f6450e94edd65c4c58e785ee01db406a02 /multimedia/naludump/files/patch-libsi-si.c | |
parent | Additional port improvements (diff) |
Add new port multimedia/naludump:
Naludump is a tool to delete NALU fill data from h.264 streams embedded into
TS files. The overall file structure isn't modified, only complete TS packets
of NALU fill data are removed.
Naludump contains lots of code of Klaus Schmidinger's VDR, and is based on
cocepts from Marten Richter's Nalustripper.
Usage:
naludump inputfile.ts [outputfile.ts]
WWW: http://www.udo-richter.de/vdr/naludump.en.html
Diffstat (limited to 'multimedia/naludump/files/patch-libsi-si.c')
-rw-r--r-- | multimedia/naludump/files/patch-libsi-si.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/multimedia/naludump/files/patch-libsi-si.c b/multimedia/naludump/files/patch-libsi-si.c new file mode 100644 index 000000000000..770e8c704a82 --- /dev/null +++ b/multimedia/naludump/files/patch-libsi-si.c @@ -0,0 +1,24 @@ +--- a/libsi/si.c ++++ b/libsi/si.c +@@ -13,7 +13,9 @@ + #include "si.h" + #include <errno.h> + #include <iconv.h> ++#ifndef __FreeBSD__ + #include <malloc.h> ++#endif + #include <stdlib.h> // for broadcaster stupidity workaround + #include <string.h> + #include "descriptor.h" +@@ -381,7 +383,11 @@ bool convertCharacterTable(const char *f + if (SystemCharacterTable) { + iconv_t cd = iconv_open(SystemCharacterTable, fromCode); + if (cd != (iconv_t)-1) { ++#ifdef __FreeBSD__ ++ const char *fromPtr = from; ++#else + char *fromPtr = (char *)from; ++#endif + while (fromLength > 0 && toLength > 1) { + if (iconv(cd, &fromPtr, &fromLength, &to, &toLength) == size_t(-1)) { + if (errno == EILSEQ) { |