pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia mplayer: Fix build with multimedia/ffmpeg4-4.4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/183c4e7ee510
branches:  trunk
changeset: 450077:183c4e7ee510
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sat Apr 10 13:06:50 2021 +0000

description:
mplayer: Fix build with multimedia/ffmpeg4-4.4

Bump PKGREVISION.

diffstat:

 multimedia/mplayer-share/distinfo                              |   3 +-
 multimedia/mplayer-share/patches/patch-libmpcodecs_ad__spdif.c |  24 ++++++++++
 multimedia/mplayer/Makefile                                    |   4 +-
 3 files changed, 28 insertions(+), 3 deletions(-)

diffs (58 lines):

diff -r c65981fa492e -r 183c4e7ee510 multimedia/mplayer-share/distinfo
--- a/multimedia/mplayer-share/distinfo Sat Apr 10 11:37:09 2021 +0000
+++ b/multimedia/mplayer-share/distinfo Sat Apr 10 13:06:50 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.98 2019/06/04 13:39:38 nia Exp $
+$NetBSD: distinfo,v 1.99 2021/04/10 13:06:50 ryoon Exp $
 
 SHA1 (mplayer/MPlayer-1.4.tar.xz) = 0954a7141de7c945d90db234e39a78c27cf73f78
 RMD160 (mplayer/MPlayer-1.4.tar.xz) = 7f94e3e3f127491f70a93a8699a1192c0771e20b
@@ -11,6 +11,7 @@
 SHA1 (patch-gui_interface.c) = 04c347b6cb0a54132e6b089142c8ed282f583a1c
 SHA1 (patch-libao2_ao__alsa.c) = da568da8b9290f1ed49ecedec7dc9141408698b1
 SHA1 (patch-libao2_ao_sun.c) = ce7042b394b9b8c051597c734b70290c8bf0a8d5
+SHA1 (patch-libmpcodecs_ad__spdif.c) = e44131414a599efc5bc0b96ed19b5ad46cb0d381
 SHA1 (patch-libvo_vo__corevideo.h) = c29a24266edb6727dda68a378fac413b5b0ab7ec
 SHA1 (patch-libvo_vo__gif89a.c) = f7ee649bebef4b7f3fd4659613f61667109ee825
 SHA1 (patch-libvo_vo__vdpau.c) = df3de0e079f7047228065bf36390aa3ad01b7f97
diff -r c65981fa492e -r 183c4e7ee510 multimedia/mplayer-share/patches/patch-libmpcodecs_ad__spdif.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-share/patches/patch-libmpcodecs_ad__spdif.c    Sat Apr 10 13:06:50 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-libmpcodecs_ad__spdif.c,v 1.1 2021/04/10 13:06:50 ryoon Exp $
+
+* Fix build with ffmpeg4-4.4.
+  From upstream revision 38198.
+
+--- libmpcodecs/ad_spdif.c.orig        2016-03-06 13:00:49.000000000 +0000
++++ libmpcodecs/ad_spdif.c
+@@ -298,14 +298,8 @@ static void uninit(sh_audio_t *sh)
+         if (spdif_ctx->header_written)
+             av_write_trailer(lavf_ctx);
+         av_freep(&lavf_ctx->pb);
+-        if (lavf_ctx->streams) {
+-            av_freep(&lavf_ctx->streams[0]->codec);
+-            av_freep(&lavf_ctx->streams[0]->info);
+-            av_freep(&lavf_ctx->streams[0]);
+-        }
+-        av_freep(&lavf_ctx->streams);
+-        av_freep(&lavf_ctx->priv_data);
++        avformat_free_context(lavf_ctx);
++        lavf_ctx = NULL;
+     }
+-    av_freep(&lavf_ctx);
+     av_freep(&spdif_ctx);
+ }
diff -r c65981fa492e -r 183c4e7ee510 multimedia/mplayer/Makefile
--- a/multimedia/mplayer/Makefile       Sat Apr 10 11:37:09 2021 +0000
+++ b/multimedia/mplayer/Makefile       Sat Apr 10 13:06:50 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.106 2019/06/22 22:46:45 tsutsui Exp $
+# $NetBSD: Makefile,v 1.107 2021/04/10 13:06:50 ryoon Exp $
 
 PKGNAME=       mplayer-${MPLAYER_VERSION}
-PKGREVISION=   1
+PKGREVISION=   2
 
 COMMENT=       Fast, cross-platform movie player
 



Home | Main Index | Thread Index | Old Index