goldendict: add patch for ffmpeg-4.0.1.
This commit is contained in:
parent
f1f6a57950
commit
47a5e3afa4
2 changed files with 22 additions and 1 deletions
21
srcpkgs/goldendict/patches/ffmpeg4.patch
Normal file
21
srcpkgs/goldendict/patches/ffmpeg4.patch
Normal file
|
@ -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;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'goldendict'
|
# Template file for 'goldendict'
|
||||||
pkgname=goldendict
|
pkgname=goldendict
|
||||||
version=1.5.0RC2
|
version=1.5.0RC2
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="${pkgname}-${version/RC/-RC}"
|
wrksrc="${pkgname}-${version/RC/-RC}"
|
||||||
build_style=qmake
|
build_style=qmake
|
||||||
hostmakedepends="qt5-qmake pkg-config qt5-tools"
|
hostmakedepends="qt5-qmake pkg-config qt5-tools"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue