summaryrefslogtreecommitdiff
path: root/media-video/libav
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-07-10 23:40:16 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-07-10 23:40:16 +0100
commit51af5f0eb4cddbe6aa7953717873691d77aae9ff (patch)
tree1541525274162b033ebbc3ed38abaf335fbbd49a /media-video/libav
parent7014a5a3ea0feffab9701fdd6b64cc7667a985af (diff)
gentoo resync : 11.07.2019
Diffstat (limited to 'media-video/libav')
-rw-r--r--media-video/libav/Manifest3
-rw-r--r--media-video/libav/files/libav-12.3-x264.patch85
-rw-r--r--media-video/libav/libav-12.3.ebuild1
3 files changed, 88 insertions, 1 deletions
diff --git a/media-video/libav/Manifest b/media-video/libav/Manifest
index 33620a4dcf5e..7ca9af9c4b83 100644
--- a/media-video/libav/Manifest
+++ b/media-video/libav/Manifest
@@ -1,7 +1,8 @@
+AUX libav-12.3-x264.patch 2466 BLAKE2B 8dd7fe5a6699f34bd1662f10eebbe5f189a22c43f827a0bb2b323a99da3e3699168fdd8c20f6513c44b2f59d089a10751ca1522c78e302fa8086beab1ad27c6e SHA512 25aeb874b4a08654b22f45cd79d9aec91e790233d93369422d3547e0ca853724347b22a2f7d404b4f076b96aae6e9b84466cd24c11e8601b4cede48e183ee15f
DIST fate-12-r1.tar.xz 763758260 BLAKE2B 299e1a2a773e49c7a51c1222ac34eaea24f77420570a1b0c0b18db5517736656f52ad0a7ca807f65f5e9f9597709265fcd950cf989ad995aa4289ba0e364950e SHA512 084f584c34d34b66c1f4d4742a11376ee2b90f6a07529b5aba6d50421dc8f863fded73dd57ad2c201aadfd529f0f923fa531ea9b41aaaa7b682846ef565a1018
DIST libav-12.3.tar.xz 5267988 BLAKE2B 92147dde4f41a5aa05d93824d3ffa9a21b067f99cec5fa17bc4b8e3600f2b1913f7e74d4ea766c864cdba686dd14d5d3a8bc8af8f9e6de4c956f14cb8e20ab88 SHA512 fd4838a934792797a975ece034cbd63760c94ee6becc99b8707e8345e41777baf26e30ef6937ab30b7d2f722977e69aabc2cfca3fcdf88373d579f9cc9d69162
DIST libav-13_pre20171219.tar.xz 5427904 BLAKE2B 074dc5d071aeb656fc14a015c2e3c168aa81d25e2fb08d99e300dc47d7ea28f61500fcfab0b16fa136261a5af27631b7536eb3aefa0e1feb4d615af57f9f5a36 SHA512 0c9b59957f1fbbff8f5b95b02c11014a4efdddf4b7e1b158cd0fda3af8b89bd90d48263ed0239915adfb7abcd7a8b22c278cd5cf1d01822bd22df65cc7f69689
-EBUILD libav-12.3.ebuild 11191 BLAKE2B 1e4b56dbb7f37997e3a26839e15bfd491b0fdaf08188fc9493333d39362f34a7ed5c323260da4a2c7dff3b4c800af5c52255edb4e754af50d0888fbb210a3824 SHA512 13f9c792a8dab0503af1226d6fc56cb700e6f4343652e64892c2e84c57e34e6d63cdb14cc3946fa98f7ffae5d03a4a9b9b3659d2c97d14705170ed3d70993acb
+EBUILD libav-12.3.ebuild 11242 BLAKE2B 25ad4fbef4ff27561de0184450b79991cb80661558aabc5b2b84d1ef69974a2230990b9cbaa04c963eedbb48b4b1cecef20a64ffb3b7bd0d9186d98a1e73ae24 SHA512 49793537ed1c926b4f3d3ab9829b2516da5280bab76af76fd627ae9a1f37edd6a6d6beb7160a0000352b96ea6fb0f7be62224f7d683f0331e508edd570147497
EBUILD libav-13_pre20171219.ebuild 10625 BLAKE2B 33a1d89df5a2188d5322f690c93a3832be3777a73b7a154e07e4167c5938bef5dd05b3b965e136d85ae6e3e010bb035bb304e5cd555894890109309afcfd1b6f SHA512 e14e5698c35358bc02450ac248053687c18734044499feb1c1bd2c4cc07394c1ad4cc31e43b134b5c04138d34965f8882021503e293273d7ebd9b2abd9907476
EBUILD libav-9999.ebuild 10766 BLAKE2B 89157d8d1e2ec75cddf618a5a788f55def679462b4e61cc252528a5fd80bd66811a732b504b0bd969bda48d8634fda53e7eee47f6c88c94c02c8b2aec40dedba SHA512 b0f81f087eb16c64eaf2bd1eea1da95f5ecbcc7c23dd08f50bde7ffee7cdc1cfdcf23d42636f4d59fd86584e9e2ae5cf2935a5356a14b95ee684fb73f9317452
MISC metadata.xml 2601 BLAKE2B d09d7ca403657b7d446f2504ff22c74ebb86303db22d4df43cb4b026ca39c059e754459f5f99ffc5cf6c5a29a189ed47754fbe709bc4897901cab96ed6928ab3 SHA512 12d2a41647e3e9ca824de3276098f742c9a068a8d4b33b2dbc45f32329ccdbdbe13c1f6f52cc4028ef5511c9f8557cea39bf1926c2433c7ae85687bf1f6ea7a1
diff --git a/media-video/libav/files/libav-12.3-x264.patch b/media-video/libav/files/libav-12.3-x264.patch
new file mode 100644
index 000000000000..25c089bfeac1
--- /dev/null
+++ b/media-video/libav/files/libav-12.3-x264.patch
@@ -0,0 +1,85 @@
+From c6558e8840fbb2386bf8742e4d68dd6e067d262e Mon Sep 17 00:00:00 2001
+From: Luca Barbato <lu_zero@gentoo.org>
+Date: Tue, 26 Dec 2017 12:32:42 +0100
+Subject: [PATCH] x264: Support version 153
+
+It has native simultaneus 8 and 10 bit support.
+---
+ libavcodec/libx264.c | 30 ++++++++++++++++++++++++++++++
+ 1 file changed, 30 insertions(+)
+
+diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
+index 0dec12edd..3dc53aaf3 100644
+--- a/libavcodec/libx264.c
++++ b/libavcodec/libx264.c
+@@ -243,7 +243,11 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
+
+ x264_picture_init( &x4->pic );
+ x4->pic.img.i_csp = x4->params.i_csp;
++#if X264_BUILD >= 153
++ if (x4->params.i_bitdepth > 8)
++#else
+ if (x264_bit_depth > 8)
++#endif
+ x4->pic.img.i_csp |= X264_CSP_HIGH_DEPTH;
+ x4->pic.img.i_plane = 3;
+
+@@ -395,6 +399,9 @@ static av_cold int X264_init(AVCodecContext *avctx)
+ x4->params.p_log_private = avctx;
+ x4->params.i_log_level = X264_LOG_DEBUG;
+ x4->params.i_csp = convert_pix_fmt(avctx->pix_fmt);
++#if X264_BUILD >= 153
++ x4->params.i_bitdepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth;
++#endif
+
+ if (avctx->bit_rate) {
+ x4->params.rc.i_bitrate = avctx->bit_rate / 1000;
+@@ -659,6 +666,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
+ return 0;
+ }
+
++#if X264_BUILD < 153
+ static const enum AVPixelFormat pix_fmts_8bit[] = {
+ AV_PIX_FMT_YUV420P,
+ AV_PIX_FMT_YUVJ420P,
+@@ -685,15 +693,37 @@ static const enum AVPixelFormat pix_fmts_10bit[] = {
+ AV_PIX_FMT_NV20,
+ AV_PIX_FMT_NONE
+ };
++#else
++static const enum AVPixelFormat pix_fmts_all[] = {
++ AV_PIX_FMT_YUV420P,
++ AV_PIX_FMT_YUVJ420P,
++ AV_PIX_FMT_YUV422P,
++ AV_PIX_FMT_YUVJ422P,
++ AV_PIX_FMT_YUV444P,
++ AV_PIX_FMT_YUVJ444P,
++ AV_PIX_FMT_NV12,
++ AV_PIX_FMT_NV16,
++ AV_PIX_FMT_NV21,
++ AV_PIX_FMT_YUV420P10,
++ AV_PIX_FMT_YUV422P10,
++ AV_PIX_FMT_YUV444P10,
++ AV_PIX_FMT_NV20,
++ AV_PIX_FMT_NONE
++};
++#endif
+
+ static av_cold void X264_init_static(AVCodec *codec)
+ {
++#if X264_BUILD < 153
+ if (x264_bit_depth == 8)
+ codec->pix_fmts = pix_fmts_8bit;
+ else if (x264_bit_depth == 9)
+ codec->pix_fmts = pix_fmts_9bit;
+ else if (x264_bit_depth == 10)
+ codec->pix_fmts = pix_fmts_10bit;
++#else
++ codec->pix_fmts = pix_fmts_all;
++#endif
+ }
+
+ #define OFFSET(x) offsetof(X264Context, x)
+--
+2.21.0
+
diff --git a/media-video/libav/libav-12.3.ebuild b/media-video/libav/libav-12.3.ebuild
index 30617cd70e6e..2e4a307f5bd2 100644
--- a/media-video/libav/libav-12.3.ebuild
+++ b/media-video/libav/libav-12.3.ebuild
@@ -144,6 +144,7 @@ src_unpack() {
src_prepare() {
eapply_user
+ eapply "${FILESDIR}/${P}-x264.patch" # bug 681888
# if we have snapshot then we need to hardcode the version
if [[ ${PV%_p*} != ${PV} ]]; then