attract: add patch for ffmpeg-4.0.1.
This commit is contained in:
parent
c7d3f493c6
commit
09b36fd721
2 changed files with 27 additions and 1 deletions
26
srcpkgs/attract/patches/ffmpeg4.patch
Normal file
26
srcpkgs/attract/patches/ffmpeg4.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
--- src/media.cpp 2017-11-19 00:08:04.000000000 +0100
|
||||||
|
+++ src/media.cpp 2018-05-08 22:32:36.387186528 +0200
|
||||||
|
@@ -970,11 +970,11 @@
|
||||||
|
|
||||||
|
size_t avio_ctx_buffer_size = 4096;
|
||||||
|
uint8_t *avio_ctx_buffer = (uint8_t *)av_malloc( avio_ctx_buffer_size
|
||||||
|
- + FF_INPUT_BUFFER_PADDING_SIZE );
|
||||||
|
+ + AV_INPUT_BUFFER_PADDING_SIZE );
|
||||||
|
|
||||||
|
memset( avio_ctx_buffer + avio_ctx_buffer_size,
|
||||||
|
0,
|
||||||
|
- FF_INPUT_BUFFER_PADDING_SIZE );
|
||||||
|
+ AV_INPUT_BUFFER_PADDING_SIZE );
|
||||||
|
|
||||||
|
m_imp->m_io_ctx = avio_alloc_context( avio_ctx_buffer,
|
||||||
|
avio_ctx_buffer_size, 0, z, &fe_zip_read,
|
||||||
|
@@ -1030,7 +1030,7 @@
|
||||||
|
//
|
||||||
|
m_audio->buffer = (sf::Int16 *)av_malloc(
|
||||||
|
MAX_AUDIO_FRAME_SIZE
|
||||||
|
- + FF_INPUT_BUFFER_PADDING_SIZE
|
||||||
|
+ + AV_INPUT_BUFFER_PADDING_SIZE
|
||||||
|
+ codec_ctx->sample_rate );
|
||||||
|
|
||||||
|
sf::SoundStream::initialize(
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'attract'
|
# Template file for 'attract'
|
||||||
pkgname=attract
|
pkgname=attract
|
||||||
version=2.3.0
|
version=2.3.0
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
make_build_args="VERBOSE=1"
|
make_build_args="VERBOSE=1"
|
||||||
|
|
Loading…
Reference in a new issue