Open valeriyvan opened 6 months ago
Exact same issue for me, find a fix?
This seems to work for me:
brew install bzip2
git clone --recurse-submodules https://github.com/ponchio/untrunc
cd untrunc/libav
**./configure --extra-cflags=-Wno-error=incompatible-function-pointer-types**
make
cd ..
g++ -o untrunc -I./libav file.cpp main.cpp track.cpp atom.cpp codec_*.cpp codecstats.cpp codec.cpp mp4.cpp log.cpp -L./libav/libavformat -lavformat -L./libav/libavcodec -lavcodec -L./libav/libavresample -lavresample -L./libav/libavutil -lavutil -lpthread -lz -std=c++11 -framework CoreFoundation -framework CoreVideo -framework VideoDecodeAcceleration -lbz2
It's the additional cflags in the configure which seems to do the trick. At least I have a binary .. will see if it works :)
make
ends with following: