commit 66ad3a8ccacadf35f5f2d1969ab6b2fb829e9d3e
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Wed Jan 17 20:20:17 2018 +0000
Try again with ffmpeg build fix
ffmpeg35_buildfix.patch | 41 ++++++++++++++++++++++++++++++-----------
gpac.spec | 4 ++--
2 files changed, 32 insertions(+), 13 deletions(-)
---
diff --git a/ffmpeg35_buildfix.patch b/ffmpeg35_buildfix.patch
index d3b54b6..47ede0e 100644
--- a/ffmpeg35_buildfix.patch
+++ b/ffmpeg35_buildfix.patch
@@ -1,14 +1,3 @@
-From 855aafe47677de558a7dd5f772b8094b54bfe61a Mon Sep 17 00:00:00 2001
-From: jeanlf <jeanlf(a)users.sourceforge.net>
-Date: Tue, 16 Jan 2018 16:21:28 +0100
-Subject: [PATCH] fixed compil bug with latest ffmpeg
-
----
- applications/dashcast/video_encoder.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/applications/dashcast/video_encoder.c
b/applications/dashcast/video_encoder.c
-index 1632ffe38..9e2238aa1 100644
--- a/applications/dashcast/video_encoder.c
+++ b/applications/dashcast/video_encoder.c
@@ -143,8 +143,10 @@ int dc_video_encoder_open(VideoOutputFile *video_output_file,
VideoDataConf *vid
@@ -22,3 +11,33 @@ index 1632ffe38..9e2238aa1 100644
video_output_file->vstream_idx = 0;//video_stream->index;
+--- a/modules/ffmpeg_in/ffmpeg_decode.c
++++ b/modules/ffmpeg_in/ffmpeg_decode.c
+@@ -49,7 +49,7 @@
+ static uint8_t * ffmpeg_realloc_buffer(uint8_t * oldBuffer, u32 size) {
+ uint8_t * buffer;
+ /* Size of buffer must be larger, see avcodec_decode_video2 documentation */
+- u32 allocatedSz = sizeof( char ) * (FF_INPUT_BUFFER_PADDING_SIZE + size);
++ u32 allocatedSz = sizeof( char ) * (AV_INPUT_BUFFER_PADDING_SIZE + size);
+ if (oldBuffer)
+ gf_free(oldBuffer);
+ buffer = (uint8_t*)gf_malloc( allocatedSz );
+@@ -577,7 +577,7 @@
+ capability->cap.valueInt = 1;
+ return GF_OK;
+ case GF_CODEC_PADDING_BYTES:
+- capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE;
++ capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE;
+ return GF_OK;
+ case GF_CODEC_REORDER:
+ capability->cap.valueInt = 1;
+@@ -669,7 +669,7 @@
+ break;
+
+ case GF_CODEC_PADDING_BYTES:
+- capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE;
++ capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE;
+ break;
+ default:
+ capability->cap.valueInt = 0;
+
diff --git a/gpac.spec b/gpac.spec
index 605f61c..195a5ea 100644
--- a/gpac.spec
+++ b/gpac.spec
@@ -27,8 +27,8 @@ Source0:
https://github.com/gpac/gpac/archive/v%{version}/gpac-%{version}.ta
Patch0: openssl-1.1.0.patch
# Upstream commit, fix typo
Patch1:
https://github.com/gpac/gpac/commit/669258a21dcc9827e1496c460af0bff83aa5d...
-# Upstream build fix for ffmpeg-3.5
-Patch2:
https://github.com/gpac/gpac/commit/855aafe47677de558a7dd5f772b8094b54bfe...
+# Build fix for ffmpeg-3.5
+Patch2: ffmpeg35_buildfix.patch
#Source9: gpac-snapshot.sh
BuildRequires: ImageMagick