From ea662567b2d323aa4066af83670d0f281a7ac647 Mon Sep 17 00:00:00 2001 From: Johannes Brechtmann Date: Thu, 3 May 2018 16:33:02 +0200 Subject: [PATCH] bs1770gain: add patch for ffmpeg-4.0.1. --- srcpkgs/bs1770gain/patches/ffmpeg4.patch | 33 ++++++++++++++++++++++++ srcpkgs/bs1770gain/template | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/bs1770gain/patches/ffmpeg4.patch diff --git a/srcpkgs/bs1770gain/patches/ffmpeg4.patch b/srcpkgs/bs1770gain/patches/ffmpeg4.patch new file mode 100644 index 00000000000..89deff65f2f --- /dev/null +++ b/srcpkgs/bs1770gain/patches/ffmpeg4.patch @@ -0,0 +1,33 @@ +--- libffsox-2/ffsox_frame.c.orig 2018-05-03 16:26:40.651562783 +0200 ++++ libffsox-2/ffsox_frame.c 2018-05-03 16:27:43.450930824 +0200 +@@ -48,7 +48,7 @@ + goto frame; + } + +- if (NULL!=codec&&(codec->capabilities&CODEC_CAP_VARIABLE_FRAME_SIZE)) ++ if (NULL!=codec&&(codec->capabilities&AV_CODEC_CAP_VARIABLE_FRAME_SIZE)) + nb_samples=10000; + else + nb_samples=cc->frame_size; +--- libffsox-2/ffsox_frame_writer.c.orig 2018-05-03 16:27:03.067335575 +0200 ++++ libffsox-2/ffsox_frame_writer.c 2018-05-03 16:28:05.418712077 +0200 +@@ -66,7 +66,7 @@ + goto open; + + if (fw->so.fc->oformat->flags&AVFMT_GLOBALHEADER) +- fw->so.cc->flags|=CODEC_FLAG_GLOBAL_HEADER; ++ fw->so.cc->flags|=AV_CODEC_FLAG_GLOBAL_HEADER; + + fw->so.st->time_base=fw->so.cc->time_base; + //fw->so.st->time_base=fr->si.st->time_base; +--- libffsox-2/ffsox_packet_writer.c.orig 2018-05-03 16:27:24.836116183 +0200 ++++ libffsox-2/ffsox_packet_writer.c 2018-05-03 16:28:19.530571557 +0200 +@@ -65,7 +65,7 @@ + pw->so.cc->codec_tag=0; + + if (pw->so.fc->oformat->flags&AVFMT_GLOBALHEADER) +- pw->so.cc->flags|=CODEC_FLAG_GLOBAL_HEADER; ++ pw->so.cc->flags|=AV_CODEC_FLAG_GLOBAL_HEADER; + + if (ffsox_sink_append(so,&pw->si,&pw->so)<0) { + DMESSAGE("appending output stream"); diff --git a/srcpkgs/bs1770gain/template b/srcpkgs/bs1770gain/template index 88456603276..92ed366691d 100644 --- a/srcpkgs/bs1770gain/template +++ b/srcpkgs/bs1770gain/template @@ -1,7 +1,7 @@ # Template file for 'bs1770gain' pkgname=bs1770gain version=0.4.12 -revision=1 +revision=2 build_style=gnu-configure makedepends="ffmpeg-devel sox-devel" short_desc="A loudness scanner compliant with ITU-R BS.1770"