diff options
author | B. Watson <yalhcru@gmail.com> | 2014-03-28 23:14:45 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2014-04-12 13:59:47 -0500 |
commit | cf2792497dc15d3fc1014b3388d972644a0acd01 (patch) | |
tree | 4e90236bce801618d0a93ad4be2a5f1cce8f1ac0 /games/alephone/ffmpeg_api.diff | |
parent | 322cfb172d9c04dfc3aa7a1908cb61dbab952443 (diff) |
games/alephone: Updated for version 20140104.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/alephone/ffmpeg_api.diff')
-rw-r--r-- | games/alephone/ffmpeg_api.diff | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/games/alephone/ffmpeg_api.diff b/games/alephone/ffmpeg_api.diff new file mode 100644 index 0000000000000..3128e3d42632e --- /dev/null +++ b/games/alephone/ffmpeg_api.diff @@ -0,0 +1,27 @@ +diff -rupN AlephOne-20140104/Source_Files/FFmpeg/SDL_ffmpeg.c AlephOne-20140104.new/Source_Files/FFmpeg/SDL_ffmpeg.c +--- AlephOne-20140104/Source_Files/FFmpeg/SDL_ffmpeg.c 2013-07-05 02:33:29.000000000 +0200 ++++ AlephOne-20140104.new/Source_Files/FFmpeg/SDL_ffmpeg.c 2014-03-16 01:53:19.327213212 +0100 +@@ -48,6 +48,11 @@ extern "C" + } + #endif + ++/* set magic number for 1 second of 48khz 32bit audio (removed from upstream) */ ++#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE ++#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 ++#endif ++ + #include "SDL_ffmpeg.h" + + #ifdef MSVC +diff -rupN AlephOne-20140104/Source_Files/FFmpeg/Movie.cpp AlephOne-20140104.new/Source_Files/FFmpeg/Movie.cpp +--- AlephOne-20140104/Source_Files/FFmpeg/Movie.cpp 2014-01-04 03:19:57.000000000 +0100 ++++ AlephOne-20140104.new/Source_Files/FFmpeg/Movie.cpp 2014-03-16 01:43:32.030011019 +0100 +@@ -491,7 +491,7 @@ bool Movie::Setup() + + // tuning options + int aq = graphics_preferences->movie_export_audio_quality; +- audio_stream->codec->global_quality = audio_stream->quality = FF_QP2LAMBDA * (aq / 10); ++ audio_stream->codec->global_quality = FF_QP2LAMBDA * (aq / 10); + audio_stream->codec->flags |= CODEC_FLAG_QSCALE; + + // find correct sample format |