bs1770gain: add patch for ffmpeg-4.0.1.

This commit is contained in:
Johannes Brechtmann 2018-05-03 16:33:02 +02:00 committed by Jürgen Buchmüller
parent 88f3c68497
commit ea662567b2
2 changed files with 34 additions and 1 deletions

View file

@ -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");

View file

@ -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"