attract: add patch for ffmpeg-4.0.1.

This commit is contained in:
Johannes Brechtmann 2018-05-08 22:51:04 +02:00 committed by Jürgen Buchmüller
parent c7d3f493c6
commit 09b36fd721
2 changed files with 27 additions and 1 deletions

View 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(

View file

@ -1,7 +1,7 @@
# Template file for 'attract'
pkgname=attract
version=2.3.0
revision=2
revision=3
build_style=gnu-makefile
hostmakedepends="pkg-config"
make_build_args="VERBOSE=1"