Index: head/multimedia/ffmpeg2theora/Makefile =================================================================== --- head/multimedia/ffmpeg2theora/Makefile +++ head/multimedia/ffmpeg2theora/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= ffmpeg2theora -PORTVERSION= 0.29 -PORTREVISION= 2 +PORTVERSION= 0.30 CATEGORIES= multimedia MASTER_SITES= http://v2v.cc/~j/ffmpeg2theora/downloads/ Index: head/multimedia/ffmpeg2theora/distinfo =================================================================== --- head/multimedia/ffmpeg2theora/distinfo +++ head/multimedia/ffmpeg2theora/distinfo @@ -1,2 +1,3 @@ -SHA256 (ffmpeg2theora-0.29.tar.bz2) = 214110e2a5afdd8ff8e0be18152e893dbff5dabc1ae1d1124e64d9f93eae946d -SIZE (ffmpeg2theora-0.29.tar.bz2) = 90143 +TIMESTAMP = 1465461122 +SHA256 (ffmpeg2theora-0.30.tar.bz2) = 4f6464b444acab5d778e0a3359d836e0867a3dcec4ad8f1cdcf87cb711ccc6df +SIZE (ffmpeg2theora-0.30.tar.bz2) = 91269 Index: head/multimedia/ffmpeg2theora/files/patch-SConstruct =================================================================== --- head/multimedia/ffmpeg2theora/files/patch-SConstruct +++ head/multimedia/ffmpeg2theora/files/patch-SConstruct @@ -1,6 +1,6 @@ ---- SConstruct.orig 2012-06-25 17:15:16 UTC +--- SConstruct.orig 2016-01-10 04:35:56 UTC +++ SConstruct -@@ -37,7 +37,7 @@ opts.AddVariables( +@@ -38,7 +38,7 @@ opts.AddVariables( BoolVariable('libkate', 'enable libkate support', 1), BoolVariable('crossmingw', 'Set to 1 for crosscompile with mingw', 0) ) @@ -9,7 +9,7 @@ Help(opts.GenerateHelpText(env)) pkg_flags="--cflags --libs" -@@ -151,7 +151,6 @@ if not env.GetOption('clean'): +@@ -152,7 +152,6 @@ if not env.GetOption('clean'): "libavcodec >= 52.30.0", "libpostproc", "libswscale", @@ -17,7 +17,7 @@ "libavutil", ] if os.path.exists("./ffmpeg"): -@@ -200,9 +199,8 @@ if not env.GetOption('clean'): +@@ -214,9 +213,8 @@ if not env.GetOption('clean'): env.Append(CCFLAGS=[ '-DHAVE_ICONV' ]) Index: head/multimedia/ffmpeg2theora/files/patch-ffmpeg2 =================================================================== --- head/multimedia/ffmpeg2theora/files/patch-ffmpeg2 +++ head/multimedia/ffmpeg2theora/files/patch-ffmpeg2 @@ -1,40 +0,0 @@ -commit d3435a6a83dc656379de9e6523ecf8d565da6ca6 -Author: Jan Gerber -Date: Sun May 26 15:25:42 2013 +0200 - - don't use deprecated AVCODEC_MAX_AUDIO_FRAME_SIZE - -diff --git src/ffmpeg2theora.c.orig src/ffmpeg2theora.c -index cde63b9..8bebf28 100644 ---- src/ffmpeg2theora.c -+++ 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) { Index: head/multimedia/ffmpeg2theora/files/patch-src-subtitles.c =================================================================== --- head/multimedia/ffmpeg2theora/files/patch-src-subtitles.c +++ head/multimedia/ffmpeg2theora/files/patch-src-subtitles.c @@ -1,11 +0,0 @@ ---- src/subtitles.c.orig 2011-09-15 20:20:46 UTC -+++ src/subtitles.c -@@ -284,7 +284,7 @@ static char *convert_subtitle_to_utf8(co - return NULL; - } - outptr=newtext; -- if (iconv(cd, &inptr, &insz, &outptr, &outsz) < 0) { -+ if (iconv(cd, &inptr, &insz, &outptr, &outsz) == (size_t)-1) { - warn(frontend, NULL, 0, "Failed to convert text to UTF-8\n"); - free(newtext); - newtext = NULL; Index: head/multimedia/ffmpeg2theora/files/patch-src__ffmpeg2theora.c =================================================================== --- head/multimedia/ffmpeg2theora/files/patch-src__ffmpeg2theora.c +++ head/multimedia/ffmpeg2theora/files/patch-src__ffmpeg2theora.c @@ -1,14 +0,0 @@ ---- src/ffmpeg2theora.c.orig 2012-01-29 17:00:19.000000000 +0900 -+++ src/ffmpeg2theora.c 2012-07-04 01:49:09.000000000 +0900 -@@ -2970,7 +2970,11 @@ - fprintf(stderr,"\nUnable to decode input.\n"); - return(1); - } -+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53,17,0) -+ av_close_input_file(convert->context); -+#else - avformat_close_input(&convert->context); -+#endif - } - else{ - if (info.frontend) Index: head/multimedia/ffmpeg2theora/files/patch-src_ffmpeg2theora.c =================================================================== --- head/multimedia/ffmpeg2theora/files/patch-src_ffmpeg2theora.c +++ head/multimedia/ffmpeg2theora/files/patch-src_ffmpeg2theora.c @@ -0,0 +1,14 @@ +--- src/ffmpeg2theora.c.orig 2016-01-10 04:35:56 UTC ++++ src/ffmpeg2theora.c +@@ -3103,7 +3103,11 @@ int main(int argc, char **argv) { + fprintf(stderr,"\nUnable to decode input.\n"); + return(1); + } ++#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53,17,0) ++ av_close_input_file(convert->context); ++#else + avformat_close_input(&convert->context); ++#endif + } + else{ + if (info.frontend) Index: head/multimedia/ffmpeg2theora/files/patch-src_subtitles.c =================================================================== --- head/multimedia/ffmpeg2theora/files/patch-src_subtitles.c +++ head/multimedia/ffmpeg2theora/files/patch-src_subtitles.c @@ -0,0 +1,11 @@ +--- src/subtitles.c.orig 2016-01-10 04:35:56 UTC ++++ src/subtitles.c +@@ -284,7 +284,7 @@ static char *convert_subtitle_to_utf8(co + return NULL; + } + outptr=newtext; +- if (iconv(cd, &inptr, &insz, &outptr, &outsz) < 0) { ++ if (iconv(cd, &inptr, &insz, &outptr, &outsz) == (size_t)-1) { + warn(frontend, NULL, 0, "Failed to convert text to UTF-8\n"); + free(newtext); + newtext = NULL;