diff options
author | Nishant Limbachia | 2016-08-28 09:24:46 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2016-08-28 09:24:46 +0200 |
commit | b5339604d7ff27d88495ad3b86a52621f4271307 (patch) | |
tree | cedd51139c34ebba3d68fd01609d66d7cb946a4f /multimedia/ffmpeg2theora/patches/10-avcodec_max_audio_frame_size.diff | |
parent | 869f01f64fc8be7eee639e3b6573132c539b1388 (diff) | |
download | slackbuilds-b5339604d7ff27d88495ad3b86a52621f4271307.tar.gz |
multimedia/ffmpeg2theora: Updated for version 0.30.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/ffmpeg2theora/patches/10-avcodec_max_audio_frame_size.diff')
-rw-r--r-- | multimedia/ffmpeg2theora/patches/10-avcodec_max_audio_frame_size.diff | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/multimedia/ffmpeg2theora/patches/10-avcodec_max_audio_frame_size.diff b/multimedia/ffmpeg2theora/patches/10-avcodec_max_audio_frame_size.diff deleted file mode 100644 index c8d10b81a9..0000000000 --- a/multimedia/ffmpeg2theora/patches/10-avcodec_max_audio_frame_size.diff +++ /dev/null @@ -1,42 +0,0 @@ -From: Jan Gerber <j@xiph.org> -Date: Sun, 26 May 2013 13:25:42 +0000 (+0200) -Subject: don't use deprecated AVCODEC_MAX_AUDIO_FRAME_SIZE -X-Git-Url: http://git.xiph.org/?p=ffmpeg2theora.git;a=commitdiff_plain;h=d3435a6a83dc656379de9e6523ecf8d565da6ca6 - -don't use deprecated AVCODEC_MAX_AUDIO_FRAME_SIZE ---- - -diff --git a/src/ffmpeg2theora.c b/src/ffmpeg2theora.c -index cde63b9..8bebf28 100644 ---- a/src/ffmpeg2theora.c -+++ b/src/ffmpeg2theora.c -@@ -47,6 +47,9 @@ - #include "ffmpeg2theora.h" - #include "avinfo.h" - -+#define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio -+ -+ - #define LENGTH(x) (sizeof(x) / sizeof(*x)) - - enum { -@@ -1069,8 +1072,8 @@ void ff2theora_output(ff2theora this) { - int first = 1; - int audio_eos = 0, video_eos = 0, audio_done = 0, video_done = 0; - int ret; -- int16_t *audio_buf=av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE); -- int16_t *resampled=av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE); -+ int16_t *audio_buf=av_malloc(4*MAX_AUDIO_FRAME_SIZE); -+ int16_t *resampled=av_malloc(4*MAX_AUDIO_FRAME_SIZE); - int16_t *audio_p=NULL; - int no_frames; - int no_samples; -@@ -1531,7 +1534,7 @@ void ff2theora_output(ff2theora this) { - while((audio_eos && !audio_done) || avpkt.size > 0 ) { - int samples=0; - int samples_out=0; -- int data_size = 4*AVCODEC_MAX_AUDIO_FRAME_SIZE; -+ int data_size = 4*MAX_AUDIO_FRAME_SIZE; - int bytes_per_sample = av_get_bytes_per_sample(aenc->sample_fmt); - - if (avpkt.size > 0) { |