diff --git a/srcpkgs/goldendict/patches/ffmpeg4.patch b/srcpkgs/goldendict/patches/ffmpeg4.patch new file mode 100644 index 00000000000..5b102c7b654 --- /dev/null +++ b/srcpkgs/goldendict/patches/ffmpeg4.patch @@ -0,0 +1,21 @@ +--- ffmpegaudio.cc.orig 2018-05-09 22:16:13.480659958 +0200 ++++ ffmpegaudio.cc 2018-05-09 22:16:50.748322790 +0200 +@@ -143,7 +143,7 @@ + return false; + } + +- unsigned char * avioBuffer = ( unsigned char * )av_malloc( kBufferSize + FF_INPUT_BUFFER_PADDING_SIZE ); ++ unsigned char * avioBuffer = ( unsigned char * )av_malloc( kBufferSize + AV_INPUT_BUFFER_PADDING_SIZE ); + if ( !avioBuffer ) + { + errorString = QObject::tr( "av_malloc() failed." ); +@@ -380,7 +380,7 @@ + } + + if ( !Qt4x5::AtomicInt::loadAcquire( isCancelled_ ) && +- codecContext_->codec->capabilities & CODEC_CAP_DELAY ) ++ codecContext_->codec->capabilities & AV_CODEC_CAP_DELAY ) + { + av_init_packet( &packet ); + int gotFrame = 0; + diff --git a/srcpkgs/goldendict/template b/srcpkgs/goldendict/template index 16859524270..30ab69a80ca 100644 --- a/srcpkgs/goldendict/template +++ b/srcpkgs/goldendict/template @@ -1,7 +1,7 @@ # Template file for 'goldendict' pkgname=goldendict version=1.5.0RC2 -revision=2 +revision=3 wrksrc="${pkgname}-${version/RC/-RC}" build_style=qmake hostmakedepends="qt5-qmake pkg-config qt5-tools"