[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)
This commit is contained in:
thermatk 2019-05-18 22:47:10 +02:00 committed by 世界
parent a13d870030
commit 0cfe8e4b78
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/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

View File

@ -0,0 +1,40 @@
From 6a841e89875400f2e2989f39b628dc9fa9654966 Mon Sep 17 00:00:00 2001
From: thermatk <thermatk@thermatk.com>
Date: Sat, 18 May 2019 22:39:24 +0200
Subject: [PATCH] Compilation magic
---
libavformat/isom.h | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/libavformat/isom.h b/libavformat/isom.h
index 69452cae8e..51fd2a917f 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -241,7 +241,7 @@ typedef struct MOVStreamContext {
} MOVStreamContext;
typedef struct MOVContext {
- const AVClass *class; ///< class for private options
+ const AVClass *clazz; ///< class for private options
AVFormatContext *fc;
int time_scale;
int64_t duration; ///< duration of the longest track
@@ -367,14 +367,5 @@ void ff_mov_write_chan(AVIOContext *pb, int64_t channel_layout);
* Compute codec id for 'lpcm' tag.
* See CoreAudioTypes and AudioStreamBasicDescription at Apple.
*/
-static inline enum AVCodecID ff_mov_get_lpcm_codec_id(int bps, int flags)
-{
- /* lpcm flags:
- * 0x1 = float
- * 0x2 = big-endian
- * 0x4 = signed
- */
- return ff_get_pcm_codec_id(bps, flags & 1, flags & 2, flags & 4 ? -1 : 0);
-}
#endif /* AVFORMAT_ISOM_H */
--
2.21.0