freshplayerplugin: add patch for ffmpeg-4.0.1.
This commit is contained in:
parent
7ee17e0b0a
commit
72d6e20c0e
2 changed files with 17 additions and 1 deletions
16
srcpkgs/freshplayerplugin/patches/ffmpeg4.patch
Normal file
16
srcpkgs/freshplayerplugin/patches/ffmpeg4.patch
Normal file
|
@ -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;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'freshplayerplugin'
|
# Template file for 'freshplayerplugin'
|
||||||
pkgname=freshplayerplugin
|
pkgname=freshplayerplugin
|
||||||
version=0.3.7
|
version=0.3.7
|
||||||
revision=3
|
revision=4
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
hostmakedepends="pkg-config ragel"
|
hostmakedepends="pkg-config ragel"
|
||||||
makedepends="libevent-devel libXcursor-devel alsa-lib-devel libXrandr-devel gtk+-devel
|
makedepends="libevent-devel libXcursor-devel alsa-lib-devel libXrandr-devel gtk+-devel
|
||||||
|
|
Loading…
Reference in a new issue