Nagram/TMessagesProj/jni/patch_ffmpeg.sh
thermatk 0cfe8e4b78
[TF][JNI][FIX] ffmpeg header included and patched
I guess upstream did the same and forgot to document.
isom.h is included in a form patched to stop annoying the compiler, dv.h in the original form

(cherry picked from commit c4a947d3779fa84c9ca0aa4d05a9532634b08e24)
2020-06-24 07:30:31 +00:00

15 lines
684 B
Bash
Executable File

#!/bin/bash
set -e
patch -d ffmpeg -p1 < patches/ffmpeg/0001-compilation-magic.patch
cp ffmpeg/libavformat/dv.h ffmpeg/build/arm64-v8a/include/libavformat/dv.h
cp ffmpeg/libavformat/isom.h ffmpeg/build/arm64-v8a/include/libavformat/isom.h
cp ffmpeg/libavformat/dv.h ffmpeg/build/armv7-a/include/libavformat/dv.h
cp ffmpeg/libavformat/isom.h ffmpeg/build/armv7-a/include/libavformat/isom.h
cp ffmpeg/libavformat/dv.h ffmpeg/build/i686/include/libavformat/dv.h
cp ffmpeg/libavformat/isom.h ffmpeg/build/i686/include/libavformat/isom.h
cp ffmpeg/libavformat/dv.h ffmpeg/build/x86_64/include/libavformat/dv.h
cp ffmpeg/libavformat/isom.h ffmpeg/build/x86_64/include/libavformat/isom.h