Skip to content

Instantly share code, notes, and snippets.

@emerkle826
Last active August 24, 2018 13:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emerkle826/5a4302abfb09b9b3a4fed598bf3a1538 to your computer and use it in GitHub Desktop.
Save emerkle826/5a4302abfb09b9b3a4fed598bf3a1538 to your computer and use it in GitHub Desktop.
Changes to mythtv build
--- a/external/FFmpeg/libavcodec/libx264.c
+++ b/external/FFmpeg/libavcodec/libx264.c
@@ -279,7 +279,7 @@
x264_picture_init( &x4->pic );
x4->pic.img.i_csp = x4->params.i_csp;
- if (x264_bit_depth > 8)
+ if (X264_BIT_DEPTH > 8)
x4->pic.img.i_csp |= X264_CSP_HIGH_DEPTH;
x4->pic.img.i_plane = avfmt2_num_planes(ctx->pix_fmt);
@@ -889,11 +889,11 @@
static av_cold void X264_init_static(AVCodec *codec)
{
- if (x264_bit_depth == 8)
+ if (X264_BIT_DEPTH == 8)
codec->pix_fmts = pix_fmts_8bit;
- else if (x264_bit_depth == 9)
+ else if (X264_BIT_DEPTH == 9)
codec->pix_fmts = pix_fmts_9bit;
- else if (x264_bit_depth == 10)
+ else if (X264_BIT_DEPTH == 10)
codec->pix_fmts = pix_fmts_10bit;
}
--- PKGBUILD.orig
+++ PKGBUILD
@@ -7,7 +7,7 @@
pkgname=mythtv
pkgver=29.1
-pkgrel=9
+pkgrel=10
epoch=1
pkgdesc="A Homebrew PVR project"
arch=('x86_64')
@@ -31,12 +31,14 @@
'mythbackend.service'
'99-mythbackend.rules'
'sysusers.d'
- 'freetype2.patch')
+ 'freetype2.patch'
+ 'libx264.patch')
sha256sums=('e40ec8111d39fd059a9ec741b10016683bcc66ee3b33c4cdaab93d60851f5d3e'
'ed5ca54de26b7cd8a64e09626eed6e09f35d677daf88c530bb24cc4252bcce6d'
'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333'
- '470de0a4050c16c7af11a0e5cfe2810b7daae42df4acf5456c7eae274dc7c5ae'
- '4451cbb28513e03cc2f62c50581daeb436d027f8a0968ba5d99a3b05da103343')
+ '470de0a4050c16c7af11a0e5cfe2810b7daae42df4acf5456c7eae274dc7c5ae'
+ '4451cbb28513e03cc2f62c50581daeb436d027f8a0968ba5d99a3b05da103343'
+ '5e8ccac4af6edfd708b892fdf2c02c8c731efc6b5f4e358df9a96b82da261f70')
prepare() {
cd $pkgname-$pkgver/$pkgname
@@ -45,6 +47,9 @@
#apply freetype2.patch to fix configure error
patch -Np1 -i ../../freetype2.patch
+
+ #apply libx264.patch
+ patch -Np1 -i ../../libx264.patch
}
build() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment