untrunc
untrunc copied to clipboard
libc++abi.dylib: terminating with uncaught exception of type std::length_error: vector
under osx sierra
libav 0.8.7 configure and make
when build, I need to replace #include<endian.h> in file.cpp track.cpp atom.cpp
with
#include <machine/endian.h>
#include <libkern/OSByteOrder.h>
#define htobe16(x) OSSwapHostToBigInt16(x)
#define htole16(x) OSSwapHostToLittleInt16(x)
#define be16toh(x) OSSwapBigToHostInt16(x)
#define le16toh(x) OSSwapLittleToHostInt16(x)
#define htobe32(x) OSSwapHostToBigInt32(x)
#define htole32(x) OSSwapHostToLittleInt32(x)
#define be32toh(x) OSSwapBigToHostInt32(x)
#define le32toh(x) OSSwapLittleToHostInt32(x)
#define htobe64(x) OSSwapHostToBigInt64(x)
#define htole64(x) OSSwapHostToLittleInt64(x)
#define be64toh(x) OSSwapBigToHostInt64(x)
#define le64toh(x) OSSwapLittleToHostInt64(x)
#define __BIG_ENDIAN BIG_ENDIAN
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#define __BYTE_ORDER BYTE_ORDER
however, when read ok file larger than 2G
getting the following error
libc++abi.dylib: terminating with uncaught exception of type std::length_error: vector
ANY SUGGESTION PLEASE
libav 0.8.7 build in ubuntu
read ok file larger than 2G
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped
getting the same error.
libav 12.3 build is mac os x Mojave
the file I'm trying to fix is 3.5GB
Hey, you should try my fork, it supports >2gb files.
I managed to fix my issue, I just checked the open PR and found one for large files (https://github.com/ponchio/untrunc/pull/161) I checked it out and compile and it also works.
Thanks :)