From 72d6e20c0e40c6f72718ade7e9df06707d679ef9 Mon Sep 17 00:00:00 2001 From: Johannes Brechtmann Date: Thu, 3 May 2018 22:12:12 +0200 Subject: [PATCH] freshplayerplugin: add patch for ffmpeg-4.0.1. --- srcpkgs/freshplayerplugin/patches/ffmpeg4.patch | 16 ++++++++++++++++ srcpkgs/freshplayerplugin/template | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/freshplayerplugin/patches/ffmpeg4.patch diff --git a/srcpkgs/freshplayerplugin/patches/ffmpeg4.patch b/srcpkgs/freshplayerplugin/patches/ffmpeg4.patch new file mode 100644 index 0000000000..5c4c99cee6 --- /dev/null +++ b/srcpkgs/freshplayerplugin/patches/ffmpeg4.patch @@ -0,0 +1,16 @@ +--- src/ppb_video_decoder.c.orig 2018-05-03 22:08:33.026677145 +0200 ++++ src/ppb_video_decoder.c 2018-05-03 22:09:26.176206079 +0200 +@@ -542,9 +542,9 @@ + goto err; + } + +- if (vd->avcodec->capabilities & CODEC_CAP_TRUNCATED) { +- trace_info("%s, codec have CODEC_CAP_TRUNCATED\n", __func__); +- vd->avctx->flags |= CODEC_FLAG_TRUNCATED; ++ if (vd->avcodec->capabilities & AV_CODEC_CAP_TRUNCATED) { ++ trace_info("%s, codec have AV_CODEC_CAP_TRUNCATED\n", __func__); ++ vd->avctx->flags |= AV_CODEC_FLAG_TRUNCATED; + } + + vd->avctx->opaque = vd; + diff --git a/srcpkgs/freshplayerplugin/template b/srcpkgs/freshplayerplugin/template index d78f62b0bc..4a4b7f92c2 100644 --- a/srcpkgs/freshplayerplugin/template +++ b/srcpkgs/freshplayerplugin/template @@ -1,7 +1,7 @@ # Template file for 'freshplayerplugin' pkgname=freshplayerplugin version=0.3.7 -revision=3 +revision=4 build_style=cmake hostmakedepends="pkg-config ragel" makedepends="libevent-devel libXcursor-devel alsa-lib-devel libXrandr-devel gtk+-devel