diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
commit | 38423c67c8a23f6a1bc42038193182e2da3116eb (patch) | |
tree | 04e2cf4bd43601b77daa79fe654e409187093c5e /app-emulation/vice/files | |
parent | 623ee73d661e5ed8475cb264511f683407d87365 (diff) |
gentoo resync : 25.04.2020
Diffstat (limited to 'app-emulation/vice/files')
-rw-r--r-- | app-emulation/vice/files/vice-2.4.27-autotools.patch | 11 | ||||
-rw-r--r-- | app-emulation/vice/files/vice-3.1-ffmpeg4.patch | 74 |
2 files changed, 0 insertions, 85 deletions
diff --git a/app-emulation/vice/files/vice-2.4.27-autotools.patch b/app-emulation/vice/files/vice-2.4.27-autotools.patch deleted file mode 100644 index 7bebd2800ef6..000000000000 --- a/app-emulation/vice/files/vice-2.4.27-autotools.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- vice-2.4.7.orig/configure.ac -+++ vice-2.4.7/configure.ac -@@ -124,7 +118,7 @@ - AC_SUBST(VICE_VERSION) - - AM_INIT_AUTOMAKE(vice, $VICE_VERSION) --AM_CONFIG_HEADER(src/config.h) -+AC_CONFIG_HEADERS(src/config.h) - - if test x"$VICE_VERSION_BUILD" = "x" -o x"$VICE_VERSION_BUILD" = "x0" ; then - VERSION_RC=$VICE_VERSION_MAJOR","$VICE_VERSION_MINOR",0,0" diff --git a/app-emulation/vice/files/vice-3.1-ffmpeg4.patch b/app-emulation/vice/files/vice-3.1-ffmpeg4.patch deleted file mode 100644 index d232ee22337e..000000000000 --- a/app-emulation/vice/files/vice-3.1-ffmpeg4.patch +++ /dev/null @@ -1,74 +0,0 @@ ---- a/src/gfxoutputdrv/ffmpegdrv.c -+++ b/src/gfxoutputdrv/ffmpegdrv.c -@@ -46,6 +46,13 @@ - #include "util.h" - #include "soundmovie.h" - -+/** \brief Helper macro to determine ffmpeg version -+ */ -+#if (LIBAVCODEC_VERSION_MAJOR >= 58) && (LIBAVCODEC_VERSION_MINOR >= 18) -+# define HAVE_FFMPEG4 -+#endif -+ -+ - static gfxoutputdrv_codec_t avi_audio_codeclist[] = { - { AV_CODEC_ID_MP2, "MP2" }, - { AV_CODEC_ID_MP3, "MP3" }, -@@ -354,7 +361,11 @@ - } - - audio_is_open = 1; -+#ifdef HAVE_FFMPEG4 -+ if (c->codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE) { -+#else - if (c->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE) { -+#endif - audio_inbuf_samples = 10000; - } else { - audio_inbuf_samples = c->frame_size; -@@ -447,8 +458,13 @@ - audio_st.samples_count = 0; - - /* Some formats want stream headers to be separate. */ -- if (ffmpegdrv_oc->oformat->flags & AVFMT_GLOBALHEADER) -+ if (ffmpegdrv_oc->oformat->flags & AVFMT_GLOBALHEADER) { -+#ifdef HAVE_FFMPEG4 -+ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; -+#else - c->flags |= CODEC_FLAG_GLOBAL_HEADER; -+#endif -+ } - - /* create resampler context */ - #ifndef HAVE_FFMPEG_AVRESAMPLE -@@ -781,7 +797,11 @@ - - /* Some formats want stream headers to be separate. */ - if (ffmpegdrv_oc->oformat->flags & AVFMT_GLOBALHEADER) { -+#ifdef HAVE_FFMPEG4 -+ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; -+#else - c->flags |= CODEC_FLAG_GLOBAL_HEADER; -+#endif - } - - if (audio_init_done) { -@@ -961,6 +981,7 @@ - - video_st.frame->pts = video_st.next_pts++; - -+#ifdef AVFMT_RAWPICTURE - if (ffmpegdrv_oc->oformat->flags & AVFMT_RAWPICTURE) { - AVPacket pkt; - VICE_P_AV_INIT_PACKET(&pkt); -@@ -971,7 +992,9 @@ - pkt.pts = pkt.dts = video_st.frame->pts; - - ret = VICE_P_AV_INTERLEAVED_WRITE_FRAME(ffmpegdrv_oc, &pkt); -- } else { -+ } else -+#endif -+ { - AVPacket pkt = { 0 }; - int got_packet; - |