Skip to content
Snippets Groups Projects
Commit bd4864fc authored by Adrien Béraud's avatar Adrien Béraud
Browse files

contrib: update ffmpeg to master

Change-Id: I9a9b37d358b55748526720eaa9c21653bc6ab8b3
parent 4622f278
Branches
No related tags found
No related merge requests found
f003bfeeefa759daa01be14bde921dd8aa88fb45e15189122067068b67e624054e8f964368b9eaf88ee13ebeda26f3b5a5e7e0e2675298d566e0874489a6abee ffmpeg-5ab44ff20cdc0e05adecbd0cd352d25fcb930094.tar.gz
bc9f5b166b21123864cf9b0028abf76ad04fd3a95608552c9e1c9008b3ea0d7ab755121c31761d8bf9b052163865e4528800c2f28c439d910b89cc6fc5f874d0 ffmpeg-59da9dcd7ef6277e4e04998ced71b05a6083c635.tar.gz
\ No newline at end of file
From 794bc48721d987bc9f511b89ac2353a8132f7332 Mon Sep 17 00:00:00 2001
From: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
Date: Wed, 10 Jul 2019 14:26:48 -0400
Subject: [PATCH] avfoundation_fix
---
libavdevice/avfoundation.m | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index 98552ac..5a3ac31 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -944,9 +944,8 @@ static int avf_read_packet(AVFormatContext *s, AVPacket *pkt)
CVImageBufferRef image_buffer;
lock_frames(ctx);
- image_buffer = CMSampleBufferGetImageBuffer(ctx->current_frame);
-
if (ctx->current_frame != nil) {
+ image_buffer = CMSampleBufferGetImageBuffer(ctx->current_frame);
int status;
if (av_new_packet(pkt, (int)CVPixelBufferGetDataSize(image_buffer)) < 0) {
return AVERROR(EIO);
--
2.22.0
......@@ -3,7 +3,7 @@ set BUILD=%SRC%..\build
mkdir %BUILD%
cd %BUILD%
set FFMPEG_VERSION=5ee203076fa1b1b5da32f525f2b6df3bd5e93b09
set FFMPEG_VERSION=59da9dcd7ef6277e4e04998ced71b05a6083c635
set FFMPEG_URL=https://github.com/FFmpeg/FFmpeg/archive/%FFMPEG_VERSION%.tar.gz
if %USE_CACHE%==1 (
......
FFMPEG_HASH := 5ab44ff20cdc0e05adecbd0cd352d25fcb930094
FFMPEG_HASH := 59da9dcd7ef6277e4e04998ced71b05a6083c635
FFMPEG_URL := https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/$(FFMPEG_HASH).tar.gz
PKGS+=ffmpeg
......@@ -325,9 +325,6 @@ ffmpeg: ffmpeg-$(FFMPEG_HASH).tar.gz
(cd $@-$(FFMPEG_HASH) && tar x $(if ${BATCH_MODE},,-v) --strip-components=1 -f ../$<)
$(APPLY) $(SRC)/ffmpeg/remove-mjpeg-log.patch
$(APPLY) $(SRC)/ffmpeg/change-RTCP-ratio.patch
ifdef HAVE_MACOSX
$(APPLY) $(SRC)/ffmpeg/avfoundation_fix.patch
endif
$(UPDATE_AUTOCONFIG)
$(MOVE)
......
From 63d0edcee2744317fc0befad53000c206eb5ee31 Mon Sep 17 00:00:00 2001
From f84107def60c4cd3dcbbcd66eaec9e934a0f6467 Mon Sep 17 00:00:00 2001
From: Eden Abitbol <eden.abitbol@savoirfairelinux.com>
Date: Tue, 9 Jul 2019 10:52:29 -0400
Subject: [PATCH] Remove ffnvcodec linux style package check for windows
support.
Date: Tue, 27 Aug 2019 12:05:38 -0400
Subject: [PATCH] windows ffnvcodec patch
---
configure | 7 -------
1 file changed, 7 deletions(-)
configure | 8 --------
1 file changed, 8 deletions(-)
--- a/configure
+++ b/configure
@@ -5897,13 +5897,6 @@ check_type "va/va.h va/va_enc_vp9.h" "VAEncPictureParameterBufferVP9"
check_type "vdpau/vdpau.h" "VdpPictureInfoHEVC"
@@ -6107,14 +6107,6 @@ else
check_nvcc cuda_llvm
fi
-if ! disabled ffnvcodec; then
- check_pkg_config ffnvcodec "ffnvcodec >= 8.1.24.2" \
- "ffnvcodec/nvEncodeAPI.h ffnvcodec/dynlink_cuda.h ffnvcodec/dynlink_cuviddec.h ffnvcodec/dynlink_nvcuvid.h" "" || \
- { test_pkg_config ffnvcodec_tmp "ffnvcodec < 8.1" "" "" && check_pkg_config ffnvcodec "ffnvcodec >= 8.0.14.2" \
- "ffnvcodec/nvEncodeAPI.h ffnvcodec/dynlink_cuda.h ffnvcodec/dynlink_cuviddec.h ffnvcodec/dynlink_nvcuvid.h" ""; }
- ffnv_hdr_list="ffnvcodec/nvEncodeAPI.h ffnvcodec/dynlink_cuda.h ffnvcodec/dynlink_cuviddec.h ffnvcodec/dynlink_nvcuvid.h"
- check_pkg_config ffnvcodec "ffnvcodec >= 9.0.18.0" "$ffnv_hdr_list" "" || \
- check_pkg_config ffnvcodec "ffnvcodec >= 8.2.15.8 ffnvcodec < 8.3" "$ffnv_hdr_list" "" || \
- check_pkg_config ffnvcodec "ffnvcodec >= 8.1.24.9 ffnvcodec < 8.2" "$ffnv_hdr_list" "" || \
- check_pkg_config ffnvcodec "ffnvcodec >= 8.0.14.9 ffnvcodec < 8.1" "$ffnv_hdr_list" ""
-fi
-
check_cpp_condition winrt windows.h "!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)"
......
From 2358a7712c9cc88990131f04ea678b5020bc2bb0 Mon Sep 17 00:00:00 2001
From f7e11c47904c43ada3821e7771229945c08a2080 Mon Sep 17 00:00:00 2001
From: Eden Abitbol <eden.abitbol@savoirfairelinux.com>
Date: Tue, 23 Jul 2019 12:30:03 -0400
Subject: [PATCH] Fix mfx link for windows.
Date: Tue, 27 Aug 2019 12:07:02 -0400
Subject: [PATCH] windows libmfx patch
---
configure | 2 --
......@@ -9,7 +9,7 @@ Subject: [PATCH] Fix mfx link for windows.
--- a/configure
+++ b/configure
@@ -6016,8 +6016,6 @@ enabled libkvazaar && require_pkg_config libkvazaar "kvazaar >= 0.8.1" kv
@@ -6225,8 +6225,6 @@ enabled liblensfun && require_pkg_config liblensfun lensfun lensfun.h lf_
# Media SDK or Intel Media Server Studio, these don't come with
# pkg-config support. Instead, users should make sure that the build
# can find the libraries and headers through other means.
......
From 737a77c1399d5f8fdab5b913b5e6b43f6ec73751 Mon Sep 17 00:00:00 2001
From: Eden Abitbol <eden.abitbol@savoirfairelinux.com>
Date: Tue, 27 Aug 2019 12:00:41 -0400
Subject: [PATCH] windows configure patch
---
configure | 35 +----------------------------------
1 file changed, 1 insertion(+), 34 deletions(-)
--- a/configure
+++ b/configure
@@ -1486,7 +1486,7 @@ require_cpp_condition(){
@@ -1569,7 +1569,7 @@ require_cpp_condition(){
require_pkg_config(){
log require_pkg_config "$@"
pkg_version="$2"
......@@ -8,56 +17,54 @@
+ #check_pkg_config "$@" || die "ERROR: $pkg_version not found using pkg-config$pkg_config_fail_message"
}
hostcc_e(){
@@ -6735,17 +6735,6 @@ flatten_extralibs_wrapper(){
eval printf \''%s'\' \""\$$list_name"\"
}
-for linkunit in $LIBRARY_LIST; do
- unset current_extralibs
- eval components=\$$(toupper ${linkunit})_COMPONENTS_LIST
- for comp in ${components}; do
- enabled $comp || continue
- comp_extralibs="${comp}_extralibs"
- append current_extralibs $comp_extralibs
- done
- eval prepend ${linkunit}_extralibs $current_extralibs
-done
-
for linkunit in $LIBRARY_LIST $PROGRAM_LIST $EXTRALIBS_LIST; do
eval ${linkunit}_extralibs=\$\(flatten_extralibs_wrapper ${linkunit}_extralibs\)
done
@@ -6068,29 +6068,7 @@ enabled libvo_amrwbenc && require libvo_amrwbenc vo-amrwbenc/enc_if.h E_IF_in
test_host_cc(){
@@ -6286,28 +6286,6 @@ enabled libvo_amrwbenc && require libvo_amrwbenc vo-amrwbenc/enc_if.h E_IF_in
enabled libvorbis && require_pkg_config libvorbis vorbis vorbis/codec.h vorbis_info_init &&
require_pkg_config libvorbisenc vorbisenc vorbis/vorbisenc.h vorbis_encode_init
-enabled libvpx && {
- enabled libvpx_vp8_decoder && {
- check_pkg_config libvpx_vp8_decoder "vpx >= 1.4.0" "vpx/vpx_decoder.h vpx/vp8dx.h" vpx_codec_vp8_dx ||
- check_lib libvpx_vp8_decoder "vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_dec_init_ver VPX_IMG_FMT_HIGHBITDEPTH" -lvpx ||
- die "ERROR: libvpx decoder version must be >=1.4.0";
- check_lib libvpx_vp8_decoder "vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp8_dx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs $pthreads_extralibs"
- }
- enabled libvpx_vp8_encoder && {
- check_pkg_config libvpx_vp8_encoder "vpx >= 1.4.0" "vpx/vpx_encoder.h vpx/vp8cx.h" vpx_codec_vp8_cx ||
- check_lib libvpx_vp8_encoder "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_enc_init_ver VPX_IMG_FMT_HIGHBITDEPTH" -lvpx ||
- die "ERROR: libvpx encoder version must be >=1.4.0";
- check_lib libvpx_vp8_encoder "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp8_cx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs $pthreads_extralibs"
- }
- enabled libvpx_vp9_decoder && {
- check_pkg_config libvpx_vp9_decoder "vpx >= 1.4.0" "vpx/vpx_decoder.h vpx/vp8dx.h" vpx_codec_vp9_dx ||
- check_lib libvpx_vp9_decoder "vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp9_dx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs"
- check_lib libvpx_vp9_decoder "vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp9_dx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs $pthreads_extralibs"
- }
- enabled libvpx_vp9_encoder && {
- check_pkg_config libvpx_vp9_encoder "vpx >= 1.4.0" "vpx/vpx_encoder.h vpx/vp8cx.h" vpx_codec_vp9_cx ||
- check_lib libvpx_vp9_encoder "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp9_cx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs"
- check_lib libvpx_vp9_encoder "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp9_cx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs $pthreads_extralibs"
- }
- if disabled_all libvpx_vp8_decoder libvpx_vp9_decoder libvpx_vp8_encoder libvpx_vp9_encoder; then
- die "libvpx enabled but no supported decoders found"
- fi
-}
+
-
enabled libwavpack && require libwavpack wavpack/wavpack.h WavpackOpenFileOutput -lwavpack
enabled libwebp && {
enabled libwebp_encoder && require_pkg_config libwebp "libwebp >= 0.2.0" webp/encode.h WebPGetEncoderVersion
@@ -6973,17 +6951,6 @@ flatten_extralibs_wrapper(){
eval printf \''%s'\' \""\$$list_name"\"
}
-for linkunit in $LIBRARY_LIST; do
- unset current_extralibs
- eval components=\$$(toupper ${linkunit})_COMPONENTS_LIST
- for comp in ${components}; do
- enabled $comp || continue
- comp_extralibs="${comp}_extralibs"
- append current_extralibs $comp_extralibs
- done
- eval prepend ${linkunit}_extralibs $current_extralibs
-done
-
for linkunit in $LIBRARY_LIST $PROGRAM_LIST $EXTRALIBS_LIST; do
eval ${linkunit}_extralibs=\$\(flatten_extralibs_wrapper ${linkunit}_extralibs\)
done
--
2.10.2.windows.1
2.22.0.windows.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment