diff options
author | Craig Andrews <candrews@gentoo.org> | 2018-11-11 22:59:26 -0500 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2018-11-15 10:08:32 -0500 |
commit | 9e7a311df544bb3ac6d2753b549f1d2732f50cac (patch) | |
tree | b80118ac2423a269b2096f947eb26a86b5141d60 /media-video/kino | |
parent | net-im/dino: add media-gfx/qrencode to deps (diff) | |
download | gentoo-9e7a311df544bb3ac6d2753b549f1d2732f50cac.tar.gz gentoo-9e7a311df544bb3ac6d2753b549f1d2732f50cac.tar.bz2 gentoo-9e7a311df544bb3ac6d2753b549f1d2732f50cac.zip |
media-video/kino: ffmpeg 4 compatible
Closes: https://bugs.gentoo.org/670660
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'media-video/kino')
-rw-r--r-- | media-video/kino/files/kino-1.3.4-ffmpeg4.patch | 13 | ||||
-rw-r--r-- | media-video/kino/kino-1.3.4-r1.ebuild | 3 |
2 files changed, 15 insertions, 1 deletions
diff --git a/media-video/kino/files/kino-1.3.4-ffmpeg4.patch b/media-video/kino/files/kino-1.3.4-ffmpeg4.patch new file mode 100644 index 000000000000..b0f359f06ba3 --- /dev/null +++ b/media-video/kino/files/kino-1.3.4-ffmpeg4.patch @@ -0,0 +1,13 @@ +diff --git a/old/frame.cc b/src/frame.cc +index c88508f..1e2573a 100644 +--- a/old/frame.cc ++++ b/src/frame.cc +@@ -1367,7 +1367,7 @@ bool Frame::CreateEncoder( bool isPAL, bool isWide ) + avcodecEncoder->thread_count = 2; + avcodecEncoder->time_base= isPAL ? ( AVRational ){ 1, 25 } : ( AVRational ){ 1001, 30000 }; + avcodecEncoder->pix_fmt = isPAL ? AV_PIX_FMT_YUV420P : AV_PIX_FMT_YUV411P; +- avcodecEncoder->flags |= CODEC_FLAG_INTERLACED_DCT; ++ avcodecEncoder->flags |= AV_CODEC_FLAG_INTERLACED_DCT; + avcodec_open2( avcodecEncoder, avcodec_find_encoder( AV_CODEC_ID_DVVIDEO ), NULL ); + av_new_packet( &avpacketEncoder, 144000 ); + tempImage = ( uint8_t* ) av_malloc( diff --git a/media-video/kino/kino-1.3.4-r1.ebuild b/media-video/kino/kino-1.3.4-r1.ebuild index cb82c2338e31..9fc8dbb085ae 100644 --- a/media-video/kino/kino-1.3.4-r1.ebuild +++ b/media-video/kino/kino-1.3.4-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -81,6 +81,7 @@ src/page_bttv.cc' po/POTFILES.in || die eapply "${FILESDIR}/${P}-libav-0.8.patch" eapply "${FILESDIR}/${P}-libavcodec-pkg-config.patch" eapply "${FILESDIR}/${P}-ffmpeg3.patch" + eapply "${FILESDIR}/${P}-ffmpeg4.patch" mv configure.in configure.ac || die eautoreconf |