diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2017-04-03 22:02:06 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-15 07:18:11 +0700 |
commit | d7e1ea09369de5d9ea1f30b1d4079bbfc8b14834 (patch) | |
tree | 574280ded8d950dc11a3f06652373e8afb9e1049 /multimedia/transcode/transcode-1.1.7-libav-10.patch | |
parent | ac7d0a8d2b7e8abf48979dfa1ba534e6b13ac99d (diff) | |
download | slackbuilds-d7e1ea09369de5d9ea1f30b1d4079bbfc8b14834.tar.gz |
multimedia/transcode: Patched to fix build with ffmpeg 3.x.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'multimedia/transcode/transcode-1.1.7-libav-10.patch')
-rw-r--r-- | multimedia/transcode/transcode-1.1.7-libav-10.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/multimedia/transcode/transcode-1.1.7-libav-10.patch b/multimedia/transcode/transcode-1.1.7-libav-10.patch new file mode 100644 index 0000000000..1f4a24039d --- /dev/null +++ b/multimedia/transcode/transcode-1.1.7-libav-10.patch @@ -0,0 +1,36 @@ +fix building w/libav-10 + +https://wiki.libav.org/Migration/10 + +--- a/filter/filter_resample.c ++++ b/filter/filter_resample.c +@@ -37,6 +37,7 @@ + #include "libtc/optstr.h" + #include "libtc/tcavcodec.h" + #include "libtc/tcmodule-plugin.h" ++#include <libavresample/avresample.h> + + + typedef struct { +@@ -45,7 +46,7 @@ typedef struct { + + int bytes_per_sample; + +- ReSampleContext *resample_ctx; ++ AVAudioResampleContext *resample_ctx; + } ResamplePrivateData; + + static const char resample_help[] = "" +--- a/import/probe_ffmpeg.c ++++ b/import/probe_ffmpeg.c +@@ -51,8 +51,8 @@ static void translate_info(const AVFormatContext *ctx, ProbeInfo *info) + info->bitrate = st->codec->bit_rate / 1000; + info->width = st->codec->width; + info->height = st->codec->height; +- if (st->r_frame_rate.num > 0 && st->r_frame_rate.den > 0) { +- info->fps = av_q2d(st->r_frame_rate); ++ if (st->avg_frame_rate.num > 0 && st->avg_frame_rate.den > 0) { ++ info->fps = av_q2d(st->avg_frame_rate); + } else { + /* watch out here */ + info->fps = 1.0/av_q2d(st->codec->time_base); |