diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /media-video/mplayer | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'media-video/mplayer')
-rw-r--r-- | media-video/mplayer/Manifest | 4 | ||||
-rw-r--r-- | media-video/mplayer/files/mplayer-1.3-ffmpeg4.patch | 501 | ||||
-rw-r--r-- | media-video/mplayer/mplayer-1.3.0-r6.ebuild | 3 |
3 files changed, 4 insertions, 504 deletions
diff --git a/media-video/mplayer/Manifest b/media-video/mplayer/Manifest index e2bc0094306b..e87066f91672 100644 --- a/media-video/mplayer/Manifest +++ b/media-video/mplayer/Manifest @@ -1,7 +1,6 @@ AUX dump_ffmpeg.sh 2529 BLAKE2B 2c945fcf0b430d74c85557f82497dbc4a2a8308ecb34c86e42cc3c6a5eed20496691839355c068ccabf6d20d11d62035231aa208341a1ce9affc44b3e30acfde SHA512 12c15efa5cdb99eac92ff808fa56c6137343cca48b73d5875a7a6b08cf36ebeda5022eb3bae0ba567ff9031d2a0f3b5dbe69ee191ae8ecf48b98a779504df66c AUX mplayer-1.3-CVE-2016-4352.patch 617 BLAKE2B 57f85be46230fa0576c6569bafc8c65f24b0a59d3b083c06d2e14fe176505567feca5024bafd73fb1b48960ea95a4705132ed6e2166a31aabcd1e34fc41e3803 SHA512 654bfa8368a02669ba249aa0c1a605f285d4d967b7038285df0ba7b83cd034ac3aff933a564fd6f33c7a153267be19d9eb517a52c8f4b53a6f81b6b2c5558512 AUX mplayer-1.3-ffmpeg4+mencoder.patch 19947 BLAKE2B 4fd3cc6f793c22b02febf99ba3ea557bf20848c6adafd995e6c4822418407c7f3f0498d512b1b08d55f449f528b681a2f4f256bcec5dd360fb6e85fe3db023dc SHA512 dc20718aad3dd00336e04ac8788cc9bd3ba5808dc69e33ee23a6c523920d05fd57db7355505e7c32d8cf740308be48b6c91332551ff423ae5e6e72925681b3f0 -AUX mplayer-1.3-ffmpeg4.patch 25679 BLAKE2B 08f9ddb05a11c9b7ce0de7fe7bb92b492d1b35e65437c09be07cd39aa70cd9541baf442ffae1ee3060fd94d78eca30fa35808db8eebfdf679456da2c1d8217e8 SHA512 9f29fcd0bfd374fecf15a40c51e2bac53d2646d939ea13e7afffc8e9854d6d2105142f95745f0b26d8f58e19938c5ccedb191af30858fb6f3520072c98db3081 AUX mplayer-1.3-vdpau-x11.patch 547 BLAKE2B b168b61f5712788c25164cf286a119de1d42c1a142048fc8b138226d146614d7fc454dd7a5c05bfcbdef815bf5d5e18064e2893a3adecd0733fcb79a803a5876 SHA512 439c7925f97b973597239a8f684171e752321dad4bae80a3a2bad46dcf6bf0c49b0839cd5cdac5c8e0b9f5c165061b4177d05cd8060ebba6cd5c4e730ab019ab AUX mplayer-1.3.0-freetype_pkgconfig.patch 417 BLAKE2B 3eb3d8463917f938b587858bca55f974382eab82ca5b22d05f3a3f3ef0f640a991e4b0dc527a7b02788f9fe361ae96898208f9a8d45c6b7dc1ddea5dd07a2dea SHA512 6e934229ab5c3a7bbfb583c9e41365c9f9de8f1448ff6bd9dfb4a8053cae18b66081b64d9f1bd26678db69470372805566df52894cb9a433f38d3c15ed4a8815 AUX prepare_mplayer.sh 757 BLAKE2B 5de1cb4b17628dd5443f98a20717f8ed028a76446104a471a669b1c7ed7a5b76a8e86203f436240312ac4814a0ba7dba7856bb4f3723da850188a3003aae8bbb SHA512 0add0707e15d58cee331fc82f884a44b29908c503f9ddcbb63dc01e237e2f457f599bae8644ce49f1af2cc7b3183529364ce30e6748889355c17cb96cecee71a @@ -10,7 +9,8 @@ DIST MPlayer-1.4.tar.xz 15054920 BLAKE2B 4777cb31a32d62c393778c581c1913fbf355a36 DIST font-arial-cp1250.tar.bz2 249705 BLAKE2B eb4366a110d917dc975b8add168ab43b1e8a0db7342647f69f5421fc1170719015c97ffa770e89892cbb4cee8e5b2fb74a4772c8f6cbef9606ee12c3746d78c9 SHA512 4f77ff5ceb8ec6e5d9f8f34d8950a6a6276d1fd5a947772fcbdb6554988b1ea665c12b82f45164f91fb7bd08000cb4afc26fa35beb4c760464160e22b9b8c340 DIST font-arial-iso-8859-1.tar.bz2 234242 BLAKE2B 0671854e1a257d27b502affb59de681942a93990d3ac2575bbf1a6dd9eef026969f2f9ce4e9c11a68ea3d8aed48063f826a1e153f7468437a39791672c92a5d0 SHA512 a1d03b6f09c48f48b7733f3bc0402ceab239a9abf88b860d852ea9fe69b4da690208a79d6f29d30204f5b37becf10672e8e8c0bfef201846d80ec54df617d029 DIST font-arial-iso-8859-2.tar.bz2 222208 BLAKE2B 94b1a04672bf9b4b20a0e6981591e761f751bd637deddcb801855296c525bf3b5e8feb1cb11cef282c0269f2c963ded22846089076e7e6763f258b8a932af454 SHA512 5671e628303fd816f64a51ad10e2f4dd9c3dc1b34c379a2ecf489b83931db7af668aaa4e00e96a00cacd63ed98daeae6b6a4d5925edfb06fc98d3a923f70257d -EBUILD mplayer-1.3.0-r6.ebuild 16848 BLAKE2B 05290a455ce7cb0f691291b1611f23802365bcc24200ad02a33d71a5192cdb9b6e0134e06c5a6a33eb0541e7493c7f2402da514b61f3017a3a652f162d3c0c68 SHA512 b1acb1bb8c247ae5ff8a173d4b4089baa4376a6bb89491faec6dfd8bb6dcf7bd21f8f0f49e320bff2de049ef6d9ff2a32e6a16261fa9286ba3b351a3851b1e41 +DIST mplayer-1.3-ffmpeg4.patch 25679 BLAKE2B 08f9ddb05a11c9b7ce0de7fe7bb92b492d1b35e65437c09be07cd39aa70cd9541baf442ffae1ee3060fd94d78eca30fa35808db8eebfdf679456da2c1d8217e8 SHA512 9f29fcd0bfd374fecf15a40c51e2bac53d2646d939ea13e7afffc8e9854d6d2105142f95745f0b26d8f58e19938c5ccedb191af30858fb6f3520072c98db3081 +EBUILD mplayer-1.3.0-r6.ebuild 16920 BLAKE2B 95895b1bbe6b6699bbf1995a4cf451b04ca8c8d572260df33f1ada8f253aa6f4fd9958b8ffc7c59699e8f6251ce1b6ae60428594abec66db64c683961863d075 SHA512 0afc5fa912d3ef3654f0ef1acd27e64a0f861f9f01f78ba82c58d44e99faae6bcc2ea0c30a0235672d90ccd0fc66734131773f771d2917c647ec31fe3ec4ecd9 EBUILD mplayer-1.4-r1.ebuild 16605 BLAKE2B 6b3f209bf2f31916826175b0806a254e5ccf8d2682f475e1d369cc10b0185b4646d63bce73cefe74164fc41e37c4d7f91c60dde71d2cc326e2622c951916e642 SHA512 870df76b212b44662ab0e1a99681d2ec5bc212aaad5b6822ce197b75a8ea0682bdd02ce7cd0452d38f5f41232f770f82a35af11775e63596896a96072eebff20 EBUILD mplayer-9999.ebuild 16605 BLAKE2B 6b3f209bf2f31916826175b0806a254e5ccf8d2682f475e1d369cc10b0185b4646d63bce73cefe74164fc41e37c4d7f91c60dde71d2cc326e2622c951916e642 SHA512 870df76b212b44662ab0e1a99681d2ec5bc212aaad5b6822ce197b75a8ea0682bdd02ce7cd0452d38f5f41232f770f82a35af11775e63596896a96072eebff20 MISC metadata.xml 2536 BLAKE2B 1a8ff751e68c46c921cd09a9364e8046372cf0a77aaf062c26ed1356eebfaa8b90eb36cac6e101fe22f9f7ddcec611806271683e76d53c642dfc1fc87ba0baa5 SHA512 01fadd14038f9bda1fb3b521f65ab92e2cfed58628352b02f26dfef710d4d5a6fd964ef00e3a123a76046557b15ae29bc7c221c5a8a692cb06763e478b3b58c7 diff --git a/media-video/mplayer/files/mplayer-1.3-ffmpeg4.patch b/media-video/mplayer/files/mplayer-1.3-ffmpeg4.patch deleted file mode 100644 index 036f9d151771..000000000000 --- a/media-video/mplayer/files/mplayer-1.3-ffmpeg4.patch +++ /dev/null @@ -1,501 +0,0 @@ -Index: Makefile -=================================================================== ---- a/Makefile.orig -+++ b/Makefile -@@ -68,7 +68,6 @@ SRCS_COMMON-$(CONFIG_VF_LAVFI) += - - # These filters use private headers and do not work with shared FFmpeg. - SRCS_COMMON-$(FFMPEG_A) += libmpcodecs/vf_fspp.c \ -- libmpcodecs/vf_mcdeint.c \ - libmpcodecs/vf_qp.c \ - libmpcodecs/vf_spp.c \ - libmpcodecs/vf_uspp.c \ -@@ -616,9 +615,7 @@ SRCS_MPLAYER = command.c - - #MEncoder - SRCS_MENCODER-$(FAAC) += libmpcodecs/ae_faac.c --SRCS_MENCODER-$(FFMPEG) += libmpcodecs/ae_lavc.c \ -- libmpcodecs/ve_lavc.c \ -- libmpdemux/muxer_lavf.c -+SRCS_MENCODER-$(FFMPEG) += libmpdemux/muxer_lavf.c - SRCS_MENCODER-$(LIBDV) += libmpcodecs/ve_libdv.c - SRCS_MENCODER-$(LIBLZO) += libmpcodecs/ve_nuv.c \ - libmpcodecs/native/rtjpegn.c -Index: cfg-mencoder.h -=================================================================== ---- a/cfg-mencoder.h.orig -+++ b/cfg-mencoder.h -@@ -52,7 +52,7 @@ const m_option_t ovc_conf[]={ - " nuv - nuppel video\n" - #endif - #ifdef CONFIG_FFMPEG -- " lavc - libavcodec codecs - best quality!\n" -+// " lavc - libavcodec codecs - best quality!\n"//TODO: ve_lavc is deactivated because it doesn't build after latest FFmpeg major bumps - #endif - #ifdef CONFIG_WIN32DLL - " vfw - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.\n" -@@ -106,7 +106,7 @@ const m_option_t oac_conf[]={ - " mp3lame - cbr/abr/vbr MP3 using libmp3lame\n" - #endif - #ifdef CONFIG_FFMPEG -- " lavc - FFmpeg audio encoder (MP2, AC3, ...)\n" -+// " lavc - FFmpeg audio encoder (MP2, AC3, ...)\n"//TODO: ae_lavc was deactivated because it depends on ve_lavc which does not compile after latest FFmpeg major bumps - #endif - #ifdef CONFIG_TOOLAME - " toolame - Toolame MP2 audio encoder\n" -@@ -226,7 +226,7 @@ const m_option_t mencoder_opts[]={ - {"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL}, - #endif - #ifdef CONFIG_FFMPEG -- {"lavcopts", lavcopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL}, -+ //{"lavcopts", lavcopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL}, //TODO: ve_lavc doesn't build after latest FFmpeg major bumps - #else - {"lavcopts", "MPlayer was compiled without libavcodec. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, - #endif /* CONFIG_FFMPEG */ -Index: gui/util/bitmap.c -=================================================================== ---- a/gui/util/bitmap.c.orig -+++ b/gui/util/bitmap.c -@@ -95,7 +95,7 @@ static int pngRead(const char *fname, gu - return 3; - } - -- data = av_malloc(len + FF_INPUT_BUFFER_PADDING_SIZE); -+ data = av_malloc(len + AV_INPUT_BUFFER_PADDING_SIZE); - - if (!data) { - fclose(file); -Index: libmpdemux/demuxer.c -=================================================================== ---- a/libmpdemux/demuxer.c.orig -+++ b/libmpdemux/demuxer.c -@@ -50,7 +50,7 @@ - - #ifdef CONFIG_FFMPEG - #include "libavcodec/avcodec.h" --#if MP_INPUT_BUFFER_PADDING_SIZE < FF_INPUT_BUFFER_PADDING_SIZE -+#if MP_INPUT_BUFFER_PADDING_SIZE < AV_INPUT_BUFFER_PADDING_SIZE - #error MP_INPUT_BUFFER_PADDING_SIZE is too small! - #endif - #include "av_helpers.h" -Index: libmpdemux/demux_lavf.c -=================================================================== ---- a/libmpdemux/demux_lavf.c.orig -+++ b/libmpdemux/demux_lavf.c -@@ -176,7 +176,7 @@ static int lavf_check_file(demuxer_t *de - } - - avpd.buf = av_mallocz(FFMAX(BIO_BUFFER_SIZE, PROBE_BUF_SIZE) + -- FF_INPUT_BUFFER_PADDING_SIZE); -+ AV_INPUT_BUFFER_PADDING_SIZE); - do { - read_size = stream_read(demuxer->stream, avpd.buf + probe_data_size, read_size); - if(read_size < 0) { -Index: libmpcodecs/vf_uspp.c -=================================================================== ---- a/libmpcodecs/vf_uspp.c.orig -+++ b/libmpcodecs/vf_uspp.c -@@ -240,7 +240,7 @@ static int config(struct vf_instance *vf - avctx_enc->gop_size = 300; - avctx_enc->max_b_frames= 0; - avctx_enc->pix_fmt = AV_PIX_FMT_YUV420P; -- avctx_enc->flags = CODEC_FLAG_QSCALE | CODEC_FLAG_LOW_DELAY; -+ avctx_enc->flags = AV_CODEC_FLAG_QSCALE | AV_CODEC_FLAG_LOW_DELAY; - avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL; - avctx_enc->global_quality= 123; - av_dict_set(&opts, "no_bitstream", "1", 0); -Index: libmpcodecs/ad_ffmpeg.c -=================================================================== ---- a/libmpcodecs/ad_ffmpeg.c.orig -+++ b/libmpcodecs/ad_ffmpeg.c -@@ -134,7 +134,7 @@ static int init(sh_audio_t *sh_audio) - - /* alloc extra data */ - if (sh_audio->wf && sh_audio->wf->cbSize > 0) { -- lavc_context->extradata = av_mallocz(sh_audio->wf->cbSize + FF_INPUT_BUFFER_PADDING_SIZE); -+ lavc_context->extradata = av_mallocz(sh_audio->wf->cbSize + AV_INPUT_BUFFER_PADDING_SIZE); - lavc_context->extradata_size = sh_audio->wf->cbSize; - memcpy(lavc_context->extradata, sh_audio->wf + 1, - lavc_context->extradata_size); -Index: libmpcodecs/vf_lavc.c -=================================================================== ---- a/libmpcodecs/vf_lavc.c.orig -+++ b/libmpcodecs/vf_lavc.c -@@ -157,7 +157,7 @@ static int vf_open(vf_instance_t *vf, ch - - if(p_quality<32){ - // fixed qscale -- lavc_venc_context.flags = CODEC_FLAG_QSCALE; -+ lavc_venc_context.flags = AV_CODEC_FLAG_QSCALE; - lavc_venc_context.global_quality = - vf->priv->pic->quality = (int)(FF_QP2LAMBDA * ((p_quality<1) ? 1 : p_quality) + 0.5); - } else { -Index: libmpcodecs/ae_lavc.c -=================================================================== ---- a/libmpcodecs/ae_lavc.c.orig -+++ b/libmpcodecs/ae_lavc.c -@@ -224,10 +224,10 @@ int mpae_init_lavc(audio_encoder_t *enco - } - if((lavc_param_audio_global_header&1) - /*|| (video_global_header==0 && (oc->oformat->flags & AVFMT_GLOBALHEADER))*/){ -- lavc_actx->flags |= CODEC_FLAG_GLOBAL_HEADER; -+ lavc_actx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; - } - if(lavc_param_audio_global_header&2){ -- lavc_actx->flags2 |= CODEC_FLAG2_LOCAL_HEADER; -+ lavc_actx->flags2 |= AV_CODEC_FLAG2_LOCAL_HEADER; - } - - if(avcodec_open2(lavc_actx, lavc_acodec, NULL) < 0) -Index: libmpcodecs/vf_mcdeint.c -=================================================================== ---- a/libmpcodecs/vf_mcdeint.c.orig -+++ b/libmpcodecs/vf_mcdeint.c -@@ -231,7 +231,7 @@ static int config(struct vf_instance *vf - avctx_enc->gop_size = 300; - avctx_enc->max_b_frames= 0; - avctx_enc->pix_fmt = AV_PIX_FMT_YUV420P; -- avctx_enc->flags = CODEC_FLAG_QSCALE | CODEC_FLAG_LOW_DELAY; -+ avctx_enc->flags = AV_CODEC_FLAG_QSCALE | AV_CODEC_FLAG_LOW_DELAY; - avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL; - avctx_enc->global_quality= 1; - av_dict_set(&opts, "memc_only", "1", 0); -@@ -245,11 +245,11 @@ static int config(struct vf_instance *vf - case 2: - avctx_enc->me_method= ME_ITER; - case 1: -- avctx_enc->flags |= CODEC_FLAG_4MV; -+ avctx_enc->flags |= AV_CODEC_FLAG_4MV; - avctx_enc->dia_size=2; - // avctx_enc->mb_decision = MB_DECISION_RD; - case 0: -- avctx_enc->flags |= CODEC_FLAG_QPEL; -+ avctx_enc->flags |= AV_CODEC_FLAG_QPEL; - } - - avcodec_open2(avctx_enc, enc, &opts); -Index: libmpcodecs/ve_lavc.c -=================================================================== ---- a/libmpcodecs/ve_lavc.c.orig -+++ b/libmpcodecs/ve_lavc.c -@@ -213,7 +213,7 @@ const m_option_t lavcopts_conf[]={ - {"vstrict", &lavc_param_strict, CONF_TYPE_INT, CONF_RANGE, -99, 99, NULL}, - {"vdpart", &lavc_param_data_partitioning, CONF_TYPE_FLAG, 0, 0, 1, NULL}, - {"keyint", &lavc_param_keyint, CONF_TYPE_INT, 0, 0, 0, NULL}, -- {"gray", &lavc_param_gray, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_GRAY, NULL}, -+ {"gray", &lavc_param_gray, CONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_GRAY, NULL}, - {"mpeg_quant", &lavc_param_mpeg_quant, CONF_TYPE_FLAG, 0, 0, 1, NULL}, - {"vi_qfactor", &lavc_param_vi_qfactor, CONF_TYPE_FLOAT, CONF_RANGE, -31.0, 31.0, NULL}, - {"vi_qoffset", &lavc_param_vi_qoffset, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 31.0, NULL}, -@@ -242,7 +242,7 @@ const m_option_t lavcopts_conf[]={ - {"pred", &lavc_param_prediction_method, CONF_TYPE_INT, CONF_RANGE, 0, 20, NULL}, - {"format", &lavc_param_format, CONF_TYPE_IMGFMT, 0, 0, 0, NULL}, - {"debug", &lavc_param_debug, CONF_TYPE_INT, CONF_RANGE, 0, 100000000, NULL}, -- {"psnr", &lavc_param_psnr, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PSNR, NULL}, -+ {"psnr", &lavc_param_psnr, CONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_PSNR, NULL}, - {"precmp", &lavc_param_me_pre_cmp, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, - {"cmp", &lavc_param_me_cmp, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, - {"subcmp", &lavc_param_me_sub_cmp, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, -@@ -251,21 +251,21 @@ const m_option_t lavcopts_conf[]={ - #ifdef FF_CMP_VSAD - {"ildctcmp", &lavc_param_ildct_cmp, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, - #endif -- {"bit_exact", &lavc_param_bit_exact, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_BITEXACT, NULL}, -+ {"bit_exact", &lavc_param_bit_exact, CONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_BITEXACT, NULL}, - {"predia", &lavc_param_pre_dia_size, CONF_TYPE_INT, CONF_RANGE, -2000, 2000, NULL}, - {"dia", &lavc_param_dia_size, CONF_TYPE_INT, CONF_RANGE, -2000, 2000, NULL}, -- {"qpel", &lavc_param_qpel, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QPEL, NULL}, -+ {"qpel", &lavc_param_qpel, CONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_QPEL, NULL}, - {"trell", &lavc_param_trell, CONF_TYPE_FLAG, 0, 0, 1, NULL}, -- {"lowdelay", &lavc_param_lowdelay, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_LOW_DELAY, NULL}, -+ {"lowdelay", &lavc_param_lowdelay, CONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_LOW_DELAY, NULL}, - {"last_pred", &lavc_param_last_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, - {"preme", &lavc_param_pre_me, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, - {"subq", &lavc_param_me_subpel_quality, CONF_TYPE_INT, CONF_RANGE, 0, 8, NULL}, - {"me_range", &lavc_param_me_range, CONF_TYPE_INT, CONF_RANGE, 0, 16000, NULL}, -- {"aic", &lavc_param_aic, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_AC_PRED, NULL}, -+ {"aic", &lavc_param_aic, CONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_AC_PRED, NULL}, - {"umv", &lavc_param_umv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, - {"aiv", &lavc_param_aiv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, - {"obmc", &lavc_param_obmc, CONF_TYPE_FLAG, 0, 0, 1, NULL}, -- {"loop", &lavc_param_loop, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_LOOP_FILTER, NULL}, -+ {"loop", &lavc_param_loop, CONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_LOOP_FILTER, NULL}, - {"ibias", &lavc_param_ibias, CONF_TYPE_INT, CONF_RANGE, -512, 512, NULL}, - {"pbias", &lavc_param_pbias, CONF_TYPE_INT, CONF_RANGE, -512, 512, NULL}, - {"coder", &lavc_param_coder, CONF_TYPE_INT, CONF_RANGE, 0, 10, NULL}, -@@ -278,8 +278,8 @@ const m_option_t lavcopts_conf[]={ - {"qprd", "Please use o=mpv_flags=+qp_rd instead of qprd.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, - {"ss", &lavc_param_ss, CONF_TYPE_FLAG, 0, 0, 1, NULL}, - {"alt", &lavc_param_alt, CONF_TYPE_FLAG, 0, 0, 1, NULL}, -- {"ilme", &lavc_param_ilme, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_ME, NULL}, -- {"cgop", &lavc_param_closed_gop, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CLOSED_GOP, NULL}, -+ {"ilme", &lavc_param_ilme, CONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_INTERLACED_ME, NULL}, -+ {"cgop", &lavc_param_closed_gop, CONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_CLOSED_GOP, NULL}, - {"gmc", &lavc_param_gmc, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_GMC, NULL}, - {"dc", &lavc_param_dc_precision, CONF_TYPE_INT, CONF_RANGE, 8, 11, NULL}, - {"border_mask", &lavc_param_border_masking, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL}, -@@ -543,7 +543,7 @@ static int config(struct vf_instance *vf - if (lavc_param_obmc) - av_dict_set(&opts, "obmc", "1", 0); - lavc_venc_context->flags|= lavc_param_loop; -- lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0; -+ lavc_venc_context->flags|= lavc_param_v4mv ? AV_CODEC_FLAG_4MV : 0; - if (lavc_param_data_partitioning) - av_dict_set(&opts, "data_partitioning", "1", 0); - lavc_venc_context->flags|= lavc_param_mv0; -@@ -553,13 +553,13 @@ static int config(struct vf_instance *vf - av_dict_set(&opts, "alternate_scan", "1", 0); - lavc_venc_context->flags|= lavc_param_ilme; - lavc_venc_context->flags|= lavc_param_gmc; --#ifdef CODEC_FLAG_CLOSED_GOP -+#ifdef AV_CODEC_FLAG_CLOSED_GOP - lavc_venc_context->flags|= lavc_param_closed_gop; - #endif - lavc_venc_context->flags|= lavc_param_gray; - - if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP; -- if(lavc_param_interlaced_dct) lavc_venc_context->flags|= CODEC_FLAG_INTERLACED_DCT; -+ if(lavc_param_interlaced_dct) lavc_venc_context->flags|= AV_CODEC_FLAG_INTERLACED_DCT; - lavc_venc_context->flags|= lavc_param_psnr; - lavc_venc_context->intra_dc_precision = lavc_param_dc_precision - 8; - lavc_venc_context->prediction_method= lavc_param_prediction_method; -@@ -568,10 +568,10 @@ static int config(struct vf_instance *vf - lavc_venc_context->scenechange_factor = lavc_param_sc_factor; - if((lavc_param_video_global_header&1) - /*|| (video_global_header==0 && (oc->oformat->flags & AVFMT_GLOBALHEADER))*/){ -- lavc_venc_context->flags |= CODEC_FLAG_GLOBAL_HEADER; -+ lavc_venc_context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; - } - if(lavc_param_video_global_header&2){ -- lavc_venc_context->flags2 |= CODEC_FLAG2_LOCAL_HEADER; -+ lavc_venc_context->flags2 |= AV_CODEC_FLAG2_LOCAL_HEADER; - } - lavc_venc_context->mv0_threshold = lavc_param_mv0_threshold; - lavc_venc_context->refs = lavc_param_refs; -@@ -595,7 +595,7 @@ static int config(struct vf_instance *vf - switch(lavc_param_vpass){ - case 2: - case 3: -- lavc_venc_context->flags|= CODEC_FLAG_PASS2; -+ lavc_venc_context->flags|= AV_CODEC_FLAG_PASS2; - stats_file= fopen(passtmpfile, "rb"); - if(stats_file==NULL){ - mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile); -@@ -618,7 +618,7 @@ static int config(struct vf_instance *vf - fclose(stats_file); - /* fall through */ - case 1: -- lavc_venc_context->flags|= CODEC_FLAG_PASS1; -+ lavc_venc_context->flags|= AV_CODEC_FLAG_PASS1; - stats_file= fopen(passtmpfile, "wb"); - if(stats_file==NULL){ - mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile); -@@ -638,8 +638,8 @@ static int config(struct vf_instance *vf - lavc_venc_context->noise_reduction = 0; // nr=0 - lavc_venc_context->mb_decision = 0; // mbd=0 ("realtime" encoding) - -- lavc_venc_context->flags &= ~CODEC_FLAG_QPEL; -- lavc_venc_context->flags &= ~CODEC_FLAG_4MV; -+ lavc_venc_context->flags &= ~AV_CODEC_FLAG_QPEL; -+ lavc_venc_context->flags &= ~AV_CODEC_FLAG_4MV; - lavc_venc_context->trellis = 0; - av_dict_set(&opts, "mpv_flags", "-mv0", 0); - av_dict_set(&opts, "mpv_flags", "-qp_rd-cbp_rd", 0); -@@ -654,7 +654,7 @@ static int config(struct vf_instance *vf - if (lavc_param_vqscale >= 0.0) - { - mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_MPCODECS_UsingConstantQscale, lavc_param_vqscale); -- lavc_venc_context->flags |= CODEC_FLAG_QSCALE; -+ lavc_venc_context->flags |= AV_CODEC_FLAG_QSCALE; - lavc_venc_context->global_quality= - vf->priv->pic->quality = (int)(FF_QP2LAMBDA * lavc_param_vqscale + 0.5); - } -@@ -693,7 +693,7 @@ static int control(struct vf_instance *v - - switch(request){ - case VFCTRL_FLUSH_FRAMES: -- if(vf->priv->codec->capabilities & CODEC_CAP_DELAY) -+ if(vf->priv->codec->capabilities & AV_CODEC_CAP_DELAY) - while(encode_frame(vf, NULL, MP_NOPTS_VALUE) > 0); - return CONTROL_TRUE; - default: -Index: libmpcodecs/ve.c -=================================================================== ---- a/libmpcodecs/ve.c.orig -+++ b/libmpcodecs/ve.c -@@ -43,7 +43,7 @@ extern const vf_info_t ve_info_x264; - - static const vf_info_t * const encoder_list[] = { - #ifdef CONFIG_FFMPEG -- &ve_info_lavc, -+// &ve_info_lavc,//TODO: ve_lavc is deactivated because it doesn't build after latest FFmpeg major bumps - #endif - #ifdef CONFIG_WIN32DLL - &ve_info_vfw, -Index: libmpcodecs/ae.c -=================================================================== ---- a/libmpcodecs/ae.c.orig -+++ b/libmpcodecs/ae.c -@@ -59,9 +59,7 @@ audio_encoder_t *new_audio_encoder(muxer - break; - #endif - #ifdef CONFIG_FFMPEG -- case ACODEC_LAVC: -- ris = mpae_init_lavc(encoder); -- break; -+ //TODO: ACODEC_LAVC <-- has been removed here because it depends on ve_lavc which does not compile after latest FFmpeg major bumps - #endif - #ifdef CONFIG_MP3LAME - case ACODEC_VBRMP3: -Index: libmpcodecs/vd_ffmpeg.c -=================================================================== ---- a/libmpcodecs/vd_ffmpeg.c.orig -+++ b/libmpcodecs/vd_ffmpeg.c -@@ -115,8 +115,7 @@ static int lavc_param_gray=0; - static int lavc_param_vstats=0; - static int lavc_param_idct_algo=0; - static int lavc_param_debug=0; --static int lavc_param_vismv=0; --#ifdef CODEC_FLAG2_SHOW_ALL -+#ifdef AV_CODEC_FLAG2_SHOW_ALL - static int lavc_param_wait_keyframe=0; - #endif - static int lavc_param_skip_top=0; -@@ -141,24 +140,23 @@ static const mp_image_t mpi_no_picture = - const m_option_t lavc_decode_opts_conf[]={ - {"bug" , &lavc_param_workaround_bugs , CONF_TYPE_INT , CONF_RANGE, -1, 999999, NULL}, - {"er" , &lavc_param_error_resilience , CONF_TYPE_INT , CONF_RANGE, 0, 99, NULL}, -- {"gray" , &lavc_param_gray , CONF_TYPE_FLAG , 0, 0, CODEC_FLAG_GRAY, NULL}, -+ {"gray" , &lavc_param_gray , CONF_TYPE_FLAG , 0, 0, AV_CODEC_FLAG_GRAY, NULL}, - {"idct" , &lavc_param_idct_algo , CONF_TYPE_INT , CONF_RANGE, 0, 99, NULL}, - {"ec" , &lavc_param_error_concealment , CONF_TYPE_INT , CONF_RANGE, 0, 99, NULL}, - {"vstats" , &lavc_param_vstats , CONF_TYPE_FLAG , 0, 0, 1, NULL}, - {"debug" , &lavc_param_debug , CONF_TYPE_INT , CONF_RANGE, 0, 9999999, NULL}, -- {"vismv" , &lavc_param_vismv , CONF_TYPE_INT , CONF_RANGE, 0, 9999999, NULL}, --#ifdef CODEC_FLAG2_SHOW_ALL -+#ifdef AV_CODEC_FLAG2_SHOW_ALL - {"wait_keyframe" , &lavc_param_wait_keyframe , CONF_TYPE_FLAG , 0, 0, 1, NULL}, - #endif - {"st" , &lavc_param_skip_top , CONF_TYPE_INT , CONF_RANGE, 0, 999, NULL}, - {"sb" , &lavc_param_skip_bottom , CONF_TYPE_INT , CONF_RANGE, 0, 999, NULL}, -- {"fast" , &lavc_param_fast , CONF_TYPE_FLAG , 0, 0, CODEC_FLAG2_FAST, NULL}, -+ {"fast" , &lavc_param_fast , CONF_TYPE_FLAG , 0, 0, AV_CODEC_FLAG2_FAST, NULL}, - {"lowres" , &lavc_param_lowres_str , CONF_TYPE_STRING , 0, 0, 0, NULL}, - {"skiploopfilter", &lavc_param_skip_loop_filter_str , CONF_TYPE_STRING , 0, 0, 0, NULL}, - {"skipidct" , &lavc_param_skip_idct_str , CONF_TYPE_STRING , 0, 0, 0, NULL}, - {"skipframe" , &lavc_param_skip_frame_str , CONF_TYPE_STRING , 0, 0, 0, NULL}, -- {"threads" , &lavc_param_threads , CONF_TYPE_INT , CONF_RANGE, 1, 16, NULL}, -- {"bitexact" , &lavc_param_bitexact , CONF_TYPE_FLAG , 0, 0, CODEC_FLAG_BITEXACT, NULL}, -+ {"threads" , &lavc_param_threads , CONF_TYPE_INT , CONF_RANGE, 1, 32, NULL}, -+ {"bitexact" , &lavc_param_bitexact , CONF_TYPE_FLAG , 0, 0, AV_CODEC_FLAG_BITEXACT, NULL}, - {"o" , &lavc_avopt , CONF_TYPE_STRING , 0, 0, 0, NULL}, - {NULL, NULL, 0, 0, 0, 0, NULL} - }; -@@ -257,9 +255,9 @@ static void set_dr_slice_settings(struct - // explicitly requested - int use_slices = vd_use_slices > 0 || (vd_use_slices < 0 && lavc_param_threads <= 1); - -- ctx->do_slices = use_slices && (lavc_codec->capabilities & CODEC_CAP_DRAW_HORIZ_BAND); -+ ctx->do_slices = use_slices && (lavc_codec->capabilities & AV_CODEC_CAP_DRAW_HORIZ_BAND); - -- ctx->do_dr1 = (lavc_codec->capabilities & CODEC_CAP_DR1) && -+ ctx->do_dr1 = (lavc_codec->capabilities & AV_CODEC_CAP_DR1) && - lavc_codec->id != AV_CODEC_ID_INTERPLAY_VIDEO && - lavc_codec->id != AV_CODEC_ID_H264 && - lavc_codec->id != AV_CODEC_ID_HEVC; -@@ -271,12 +269,9 @@ static void set_dr_slice_settings(struct - ctx->do_dr1 = 1; - ctx->nonref_dr = 1; - } -- if (lavc_param_vismv || (lavc_param_debug & (FF_DEBUG_VIS_MB_TYPE|FF_DEBUG_VIS_QP))) { -- ctx->do_slices = ctx->do_dr1 = 0; -- } - if(ctx->do_dr1){ - avctx->get_buffer2 = get_buffer2; -- } else if (lavc_codec->capabilities & CODEC_CAP_DR1) { -+ } else if (lavc_codec->capabilities & AV_CODEC_CAP_DR1) { - avctx->get_buffer2 = avcodec_default_get_buffer2; - } - avctx->slice_flags = 0; -@@ -372,9 +367,9 @@ static int init(sh_video_t *sh){ - case 1: - avctx->err_recognition |= AV_EF_CAREFUL; - } -- lavc_param_gray|= CODEC_FLAG_GRAY; --#ifdef CODEC_FLAG2_SHOW_ALL -- if(!lavc_param_wait_keyframe) avctx->flags2 |= CODEC_FLAG2_SHOW_ALL; -+ lavc_param_gray|= AV_CODEC_FLAG_GRAY; -+#ifdef AV_CODEC_FLAG2_SHOW_ALL -+ if(!lavc_param_wait_keyframe) avctx->flags2 |= AV_CODEC_FLAG2_SHOW_ALL; - #endif - avctx->flags2|= lavc_param_fast; - avctx->codec_tag= sh->format; -@@ -383,7 +378,6 @@ static int init(sh_video_t *sh){ - avctx->debug= lavc_param_debug; - if (lavc_param_debug) - av_log_set_level(AV_LOG_DEBUG); -- avctx->debug_mv= lavc_param_vismv; - avctx->skip_top = lavc_param_skip_top; - avctx->skip_bottom= lavc_param_skip_bottom; - if(lavc_param_lowres_str != NULL) -@@ -419,7 +413,7 @@ static int init(sh_video_t *sh){ - handled here; the second case falls through to the next section. */ - if (sh->ImageDesc) { - avctx->extradata_size = (*(int *)sh->ImageDesc) - sizeof(int); -- avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); -+ avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); - memcpy(avctx->extradata, ((int *)sh->ImageDesc)+1, avctx->extradata_size); - break; - } -@@ -434,7 +428,7 @@ static int init(sh_video_t *sh){ - break; - av_dict_set(&opts, "extern_huff", "1", 0); - avctx->extradata_size = sh->bih->biSize-sizeof(*sh->bih); -- avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); -+ avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); - memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size); - - #if 0 -@@ -457,14 +451,14 @@ static int init(sh_video_t *sh){ - if(sh->bih->biSize<sizeof(*sh->bih)+8){ - /* only 1 packet per frame & sub_id from fourcc */ - avctx->extradata_size= 8; -- avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); -+ avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); - ((uint32_t *)avctx->extradata)[0] = 0; - ((uint32_t *)avctx->extradata)[1] = - (sh->format == mmioFOURCC('R', 'V', '1', '3')) ? 0x10003001 : 0x10000000; - } else { - /* has extra slice header (demux_rm or rm->avi streamcopy) */ - avctx->extradata_size = sh->bih->biSize-sizeof(*sh->bih); -- avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); -+ avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); - memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size); - } - -@@ -475,7 +469,11 @@ static int init(sh_video_t *sh){ - if (!sh->bih || sh->bih->biSize <= sizeof(*sh->bih)) - break; - avctx->extradata_size = sh->bih->biSize-sizeof(*sh->bih); -- avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); -+ avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); -+ if (!avctx->extradata) { -+ avctx->extradata_size = 0; -+ break; -+ } - memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size); - break; - } -Index: libmpcodecs/vf.c -=================================================================== ---- a/libmpcodecs/vf.c.orig -+++ b/libmpcodecs/vf.c -@@ -200,7 +200,7 @@ static const vf_info_t* const filter_lis - &vf_info_uspp, - &vf_info_fspp, - &vf_info_qp, -- &vf_info_mcdeint, -+// &vf_info_mcdeint, //TODO: vf_mcdeint is deactivated because it doesn't build after latest FFmpeg major bumps - #endif - &vf_info_yuvcsp, - &vf_info_kerndeint, diff --git a/media-video/mplayer/mplayer-1.3.0-r6.ebuild b/media-video/mplayer/mplayer-1.3.0-r6.ebuild index 425e4c483f20..1bdf32fb43ce 100644 --- a/media-video/mplayer/mplayer-1.3.0-r6.ebuild +++ b/media-video/mplayer/mplayer-1.3.0-r6.ebuild @@ -39,6 +39,7 @@ else RELEASE_URI="mirror://gentoo/${P}.tar.xz" fi SRC_URI="${RELEASE_URI} + https://dev.gentoo.org/~juippis/distfiles/tmp/mplayer-1.3-ffmpeg4.patch !truetype? ( ${FONT_URI} )" DESCRIPTION="Media Player for Linux" @@ -235,7 +236,7 @@ src_prepare() { else eapply "${FILESDIR}"/${PN}-1.3.0-freetype_pkgconfig.patch #655240 eapply "${FILESDIR}"/${PN}-1.3-CVE-2016-4352.patch - has_version '>media-video/ffmpeg-3.5' && eapply "${FILESDIR}"/${PN}-1.3-ffmpeg4.patch "${FILESDIR}"/${PN}-1.3-ffmpeg4+mencoder.patch + has_version '>media-video/ffmpeg-3.5' && eapply "${DISTDIR}"/${PN}-1.3-ffmpeg4.patch "${FILESDIR}"/${PN}-1.3-ffmpeg4+mencoder.patch fi if [ ! -f VERSION ] ; then [ -f "$svf" ] || die "Missing ${svf}. Did you generate your snapshot with prepare_mplayer.sh?" |