pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/libdlna



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Apr 23 15:24:00 UTC 2020

Modified Files:
        pkgsrc/net/libdlna: Makefile distinfo
Added Files:
        pkgsrc/net/libdlna/patches: patch-src_audio__aac.c
            patch-src_audio__ac3.c patch-src_audio__amr.c
            patch-src_audio__atrac3.c patch-src_audio__g726.c
            patch-src_audio__lpcm.c patch-src_audio__mp2.c
            patch-src_audio__mp3.c patch-src_audio__wma.c patch-src_av__mpeg1.c
            patch-src_av__mpeg2.c patch-src_av__mpeg4__part10.c
            patch-src_av__mpeg4__part2.c patch-src_av__wmv9.c
            patch-src_image__jpeg.c patch-src_image__png.c patch-src_profiles.c

Log Message:
libdlna: Switch to ffmpeg4


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/net/libdlna/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/libdlna/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/libdlna/patches/patch-src_audio__aac.c \
    pkgsrc/net/libdlna/patches/patch-src_audio__ac3.c \
    pkgsrc/net/libdlna/patches/patch-src_audio__amr.c \
    pkgsrc/net/libdlna/patches/patch-src_audio__atrac3.c \
    pkgsrc/net/libdlna/patches/patch-src_audio__g726.c \
    pkgsrc/net/libdlna/patches/patch-src_audio__lpcm.c \
    pkgsrc/net/libdlna/patches/patch-src_audio__mp2.c \
    pkgsrc/net/libdlna/patches/patch-src_audio__mp3.c \
    pkgsrc/net/libdlna/patches/patch-src_audio__wma.c \
    pkgsrc/net/libdlna/patches/patch-src_av__mpeg1.c \
    pkgsrc/net/libdlna/patches/patch-src_av__mpeg2.c \
    pkgsrc/net/libdlna/patches/patch-src_av__mpeg4__part10.c \
    pkgsrc/net/libdlna/patches/patch-src_av__mpeg4__part2.c \
    pkgsrc/net/libdlna/patches/patch-src_av__wmv9.c \
    pkgsrc/net/libdlna/patches/patch-src_image__jpeg.c \
    pkgsrc/net/libdlna/patches/patch-src_image__png.c \
    pkgsrc/net/libdlna/patches/patch-src_profiles.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/libdlna/Makefile
diff -u pkgsrc/net/libdlna/Makefile:1.16 pkgsrc/net/libdlna/Makefile:1.17
--- pkgsrc/net/libdlna/Makefile:1.16    Sun Jan 26 17:31:50 2020
+++ pkgsrc/net/libdlna/Makefile Thu Apr 23 15:24:00 2020
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2020/01/26 17:31:50 rillig Exp $
+# $NetBSD: Makefile,v 1.17 2020/04/23 15:24:00 nia Exp $
 
 DISTNAME=      libdlna-0.2.4
-PKGREVISION=   8
+PKGREVISION=   9
 CATEGORIES=    net
 MASTER_SITES=  http://libdlna.geexbox.org/releases/
 EXTRACT_SUFX=  .tar.bz2
@@ -28,5 +28,5 @@ SUBST_STAGE.config=   pre-configure
 SUBST_FILES.config=    configure
 SUBST_SED.config=      -e 's,/usr/bin/install,${INSTALL},'
 
-.include "../../multimedia/ffmpeg1/buildlink3.mk"
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/net/libdlna/distinfo
diff -u pkgsrc/net/libdlna/distinfo:1.3 pkgsrc/net/libdlna/distinfo:1.4
--- pkgsrc/net/libdlna/distinfo:1.3     Wed Nov  4 00:35:08 2015
+++ pkgsrc/net/libdlna/distinfo Thu Apr 23 15:24:00 2020
@@ -1,7 +1,24 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 00:35:08 agc Exp $
+$NetBSD: distinfo,v 1.4 2020/04/23 15:24:00 nia Exp $
 
 SHA1 (libdlna-0.2.4.tar.bz2) = 5e86f4443eeb9e7194c808301efeb78611a9e8b3
 RMD160 (libdlna-0.2.4.tar.bz2) = 6083bdcb7b5bc048f5b81373ef452145ba913861
 SHA512 (libdlna-0.2.4.tar.bz2) = 2d6185e0d7f9d449fe48e5e6c7331a46fb795794c6b8f229e730e47ae519e28d012a79227c2bb43d3a62442560e0d65c8a84ef48e714a99848b854495d6bf7e6
 Size (libdlna-0.2.4.tar.bz2) = 37579 bytes
 SHA1 (patch-af) = b34c260bf86062d268a8f113df17e285ed6ecdb7
+SHA1 (patch-src_audio__aac.c) = c44296b8da285f3c041e5c199983d2dd1b5a4394
+SHA1 (patch-src_audio__ac3.c) = fb54bddd790d1ab8341f65e457448775cad3a9ab
+SHA1 (patch-src_audio__amr.c) = 918b1b2fbfb4120e7b0942e50df63c8b589cff69
+SHA1 (patch-src_audio__atrac3.c) = aa6ad2cbc2189a204b883324f9b92173dfd6a868
+SHA1 (patch-src_audio__g726.c) = 938efd2964b78bb041695b6d1a626fb7a536348e
+SHA1 (patch-src_audio__lpcm.c) = f372362128418caab966e619c793b0cf59934fc2
+SHA1 (patch-src_audio__mp2.c) = 3daaa90ace01b34436b80d3c39acf065e48a14ac
+SHA1 (patch-src_audio__mp3.c) = 5945d9e8b742b51dc4dc61c9a31eeb634e3b565a
+SHA1 (patch-src_audio__wma.c) = a94755a9d1e201415a45b1d85f531868c7d004da
+SHA1 (patch-src_av__mpeg1.c) = e47cc6113895a8f7fc6ab1e90d066514894ef659
+SHA1 (patch-src_av__mpeg2.c) = 73397901c6931a761669d2f76d32a0b99f92f2e6
+SHA1 (patch-src_av__mpeg4__part10.c) = 4269b7f5fffc10fe591c8f4db191a6c101a371f0
+SHA1 (patch-src_av__mpeg4__part2.c) = b47f21ce41f900981b667caf2032126a3fe21507
+SHA1 (patch-src_av__wmv9.c) = 19fe459f154ed65f2dd67b2a681392ff201c5bc0
+SHA1 (patch-src_image__jpeg.c) = c378670db980613ea5c23909febb8b640c08a1e4
+SHA1 (patch-src_image__png.c) = d82725b1c86ef8dac18e86ca1689e6c2bc98336a
+SHA1 (patch-src_profiles.c) = 77ad202651d164dc58f38a6b486c4069eadc56f4

Added files:

Index: pkgsrc/net/libdlna/patches/patch-src_audio__aac.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_audio__aac.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_audio__aac.c   Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__aac.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_aac.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_aac.c
+@@ -311,7 +311,7 @@ audio_profile_guess_aac_priv (AVCodecCon
+     return AUDIO_PROFILE_INVALID;
+ 
+   /* check for AAC variants codec */
+-  if (ac->codec_id != CODEC_ID_AAC)
++  if (ac->codec_id != AV_CODEC_ID_AAC)
+     return AUDIO_PROFILE_INVALID;
+   
+   switch (type)
Index: pkgsrc/net/libdlna/patches/patch-src_audio__ac3.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_audio__ac3.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_audio__ac3.c   Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__ac3.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_ac3.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_ac3.c
+@@ -39,7 +39,7 @@ audio_profile_guess_ac3 (AVCodecContext 
+     return AUDIO_PROFILE_INVALID;
+ 
+   /* check for AC3 codec */
+-  if (ac->codec_id != CODEC_ID_AC3)
++  if (ac->codec_id != AV_CODEC_ID_AC3)
+     return AUDIO_PROFILE_INVALID;
+   
+   /* supported channels: 1/0, 2/0, 3/0, 2/1, 3/1, 2/2, 3/2 */
Index: pkgsrc/net/libdlna/patches/patch-src_audio__amr.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_audio__amr.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_audio__amr.c   Thu Apr 23 15:24:00 2020
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_audio__amr.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_amr.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_amr.c
+@@ -53,7 +53,7 @@ audio_is_valid_amr (AVCodecContext *ac)
+   if (!ac)
+     return 0;
+ 
+-  if (ac->codec_id != CODEC_ID_AMR_NB)
++  if (ac->codec_id != AV_CODEC_ID_AMR_NB)
+     return 0;
+   
+   /* only mono is supported */
+@@ -89,7 +89,7 @@ audio_is_valid_amr_wb (AVCodecContext *a
+   if (!ac)
+     return 0;
+ 
+-  if (ac->codec_id != CODEC_ID_AMR_WB)
++  if (ac->codec_id != AV_CODEC_ID_AMR_WB)
+     return 0;
+   
+   /* valid sampling rates: 8, 16, 24, 32 and 48 kHz */
Index: pkgsrc/net/libdlna/patches/patch-src_audio__atrac3.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_audio__atrac3.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_audio__atrac3.c        Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__atrac3.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_atrac3.c.orig    2012-02-26 19:34:00.000000000 +0000
++++ src/audio_atrac3.c
+@@ -39,7 +39,7 @@ audio_profile_guess_atrac (AVCodecContex
+     return AUDIO_PROFILE_INVALID;
+ 
+ #if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4)
+-  if (ac->codec_id == CODEC_ID_ATRAC3)
++  if (ac->codec_id == AV_CODEC_ID_ATRAC3)
+     return AUDIO_PROFILE_ATRAC;
+ #endif
+ 
Index: pkgsrc/net/libdlna/patches/patch-src_audio__g726.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_audio__g726.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_audio__g726.c  Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__g726.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_g726.c.orig      2012-02-26 19:34:00.000000000 +0000
++++ src/audio_g726.c
+@@ -31,7 +31,7 @@ audio_profile_guess_g726 (AVCodecContext
+   if (!ac)
+     return AUDIO_PROFILE_INVALID;
+ 
+-  if (ac->codec_id != CODEC_ID_ADPCM_G726)
++  if (ac->codec_id != AV_CODEC_ID_ADPCM_G726)
+     return AUDIO_PROFILE_INVALID;
+   
+   if (ac->channels != 1)
Index: pkgsrc/net/libdlna/patches/patch-src_audio__lpcm.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_audio__lpcm.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_audio__lpcm.c  Thu Apr 23 15:24:00 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_audio__lpcm.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_lpcm.c.orig      2012-02-26 19:34:00.000000000 +0000
++++ src/audio_lpcm.c
+@@ -45,8 +45,8 @@ audio_profile_guess_lpcm (AVCodecContext
+     return AUDIO_PROFILE_INVALID;
+ 
+   /* check for 16-bit signed network-endian PCM codec  */
+-  if (ac->codec_id != CODEC_ID_PCM_S16BE &&
+-      ac->codec_id != CODEC_ID_PCM_S16LE)
++  if (ac->codec_id != AV_CODEC_ID_PCM_S16BE &&
++      ac->codec_id != AV_CODEC_ID_PCM_S16LE)
+     return AUDIO_PROFILE_INVALID;
+ 
+   /* supported channels: mono or stereo */
Index: pkgsrc/net/libdlna/patches/patch-src_audio__mp2.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_audio__mp2.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_audio__mp2.c   Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__mp2.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_mp2.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_mp2.c
+@@ -31,7 +31,7 @@ audio_profile_guess_mp2 (AVCodecContext 
+   if (!ac)
+     return AUDIO_PROFILE_INVALID;
+ 
+-  if (ac->codec_id != CODEC_ID_MP2)
++  if (ac->codec_id != AV_CODEC_ID_MP2)
+     return AUDIO_PROFILE_INVALID;
+   
+   if (ac->channels > 5)
Index: pkgsrc/net/libdlna/patches/patch-src_audio__mp3.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_audio__mp3.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_audio__mp3.c   Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__mp3.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_mp3.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_mp3.c
+@@ -47,7 +47,7 @@ audio_is_valid_mp3_common (AVCodecContex
+     return 0;
+ 
+   /* check for MP3 codec */
+-  if (ac->codec_id != CODEC_ID_MP3)
++  if (ac->codec_id != AV_CODEC_ID_MP3)
+     return 0;
+   
+   /* only mono and stereo are supported */
Index: pkgsrc/net/libdlna/patches/patch-src_audio__wma.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_audio__wma.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_audio__wma.c   Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__wma.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_wma.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_wma.c
+@@ -55,7 +55,7 @@ audio_profile_guess_wma (AVCodecContext 
+     return ap;
+ 
+   /* check for WMA codec */
+-  if (ac->codec_id != CODEC_ID_WMAV1 && ac->codec_id != CODEC_ID_WMAV2)
++  if (ac->codec_id != AV_CODEC_ID_WMAV1 && ac->codec_id != AV_CODEC_ID_WMAV2)
+     return ap;
+ 
+   if (ac->sample_rate <= 48000)
Index: pkgsrc/net/libdlna/patches/patch-src_av__mpeg1.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_av__mpeg1.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_av__mpeg1.c    Thu Apr 23 15:24:00 2020
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_av__mpeg1.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/av_mpeg1.c.orig        2012-02-26 19:34:00.000000000 +0000
++++ src/av_mpeg1.c
+@@ -42,7 +42,7 @@ probe_mpeg1 (AVFormatContext *ctx dlna_u
+     return NULL;
+   
+   /* check for MPEG-1 video codec */
+-  if (codecs->vc->codec_id != CODEC_ID_MPEG1VIDEO)
++  if (codecs->vc->codec_id != AV_CODEC_ID_MPEG1VIDEO)
+     return NULL;
+ 
+   /* video bitrate must be CBR at 1,151,929.1 bps */
+@@ -72,7 +72,7 @@ probe_mpeg1 (AVFormatContext *ctx dlna_u
+     return NULL;
+ 
+   /* check for MPEG-1 Layer-2 audio codec */
+-  if (codecs->ac->codec_id != CODEC_ID_MP2)
++  if (codecs->ac->codec_id != AV_CODEC_ID_MP2)
+     return NULL;
+   
+   /* supported channels: stereo only */
Index: pkgsrc/net/libdlna/patches/patch-src_av__mpeg2.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_av__mpeg2.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_av__mpeg2.c    Thu Apr 23 15:24:00 2020
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_av__mpeg2.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/av_mpeg2.c.orig        2012-02-26 19:34:00.000000000 +0000
++++ src/av_mpeg2.c
+@@ -453,7 +453,7 @@ probe_mpeg_ts (AVFormatContext *ctx,
+   int i;
+   
+   /* check for MPEG-2 MP@LL profile */
+-  if (codecs->ac->codec_id == CODEC_ID_AAC)
++  if (codecs->ac->codec_id == AV_CODEC_ID_AAC)
+   {
+     /* 352x288 only */
+     if (codecs->vc->width != 352 && codecs->vc->height != 288)
+@@ -535,7 +535,7 @@ probe_mpeg_ts (AVFormatContext *ctx,
+   if (ctx->bit_rate > 19392700)
+     return NULL;
+ 
+-  if (codecs->ac->codec_id != CODEC_ID_AC3)
++  if (codecs->ac->codec_id != AV_CODEC_ID_AC3)
+     return NULL;
+ 
+   /* 48 KHz only */
+@@ -615,7 +615,7 @@ probe_mpeg2 (AVFormatContext *ctx,
+     return NULL;
+   
+   /* check for MPEG-2 video codec */
+-  if (codecs->vc->codec_id != CODEC_ID_MPEG2VIDEO)
++  if (codecs->vc->codec_id != AV_CODEC_ID_MPEG2VIDEO)
+     return NULL;
+ 
+   switch (st)
Index: pkgsrc/net/libdlna/patches/patch-src_av__mpeg4__part10.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_av__mpeg4__part10.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_av__mpeg4__part10.c    Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_av__mpeg4__part10.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/av_mpeg4_part10.c.orig 2012-02-26 19:34:00.000000000 +0000
++++ src/av_mpeg4_part10.c
+@@ -1221,7 +1221,7 @@ probe_avc (AVFormatContext *ctx,
+     return NULL;
+ 
+   /* check for H.264/AVC codec */
+-  if (codecs->vc->codec_id != CODEC_ID_H264)
++  if (codecs->vc->codec_id != AV_CODEC_ID_H264)
+     return NULL;
+ 
+   /* check for a supported container */
Index: pkgsrc/net/libdlna/patches/patch-src_av__mpeg4__part2.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_av__mpeg4__part2.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_av__mpeg4__part2.c     Thu Apr 23 15:24:00 2020
@@ -0,0 +1,27 @@
+$NetBSD: patch-src_av__mpeg4__part2.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/av_mpeg4_part2.c.orig  2012-02-26 19:34:00.000000000 +0000
++++ src/av_mpeg4_part2.c
+@@ -42,13 +42,13 @@ static const struct {
+   int codec_id;
+   mpeg4_vcodec_type_t type;
+ } avf_vcodec_mapping[] = {
+-  { CODEC_ID_H263,                      MPEG4_VCODEC_H263 },
+-  { CODEC_ID_H263I,                     MPEG4_VCODEC_H263 },
+-  { CODEC_ID_H263P,                     MPEG4_VCODEC_H263 },
+-  { CODEC_ID_MPEG4,                     MPEG4_VCODEC_P2 },
+-  { CODEC_ID_MSMPEG4V1,                 MPEG4_VCODEC_P2 },
+-  { CODEC_ID_MSMPEG4V2,                 MPEG4_VCODEC_P2 },
+-  { CODEC_ID_MSMPEG4V3,                 MPEG4_VCODEC_P2 },
++  { AV_CODEC_ID_H263,                      MPEG4_VCODEC_H263 },
++  { AV_CODEC_ID_H263I,                     MPEG4_VCODEC_H263 },
++  { AV_CODEC_ID_H263P,                     MPEG4_VCODEC_H263 },
++  { AV_CODEC_ID_MPEG4,                     MPEG4_VCODEC_P2 },
++  { AV_CODEC_ID_MSMPEG4V1,                 MPEG4_VCODEC_P2 },
++  { AV_CODEC_ID_MSMPEG4V2,                 MPEG4_VCODEC_P2 },
++  { AV_CODEC_ID_MSMPEG4V3,                 MPEG4_VCODEC_P2 },
+   { -1, 0 }
+ };
+    
Index: pkgsrc/net/libdlna/patches/patch-src_av__wmv9.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_av__wmv9.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_av__wmv9.c     Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_av__wmv9.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/av_wmv9.c.orig 2012-02-26 19:34:00.000000000 +0000
++++ src/av_wmv9.c
+@@ -245,7 +245,7 @@ probe_wmv9 (AVFormatContext *ctx dlna_un
+     return NULL;
+ 
+   /* check for WMV3 (Simple and Main profiles) video codec */
+-  if (codecs->vc->codec_id != CODEC_ID_WMV3)
++  if (codecs->vc->codec_id != AV_CODEC_ID_WMV3)
+     return NULL;
+ 
+   /* get video profile */
Index: pkgsrc/net/libdlna/patches/patch-src_image__jpeg.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_image__jpeg.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_image__jpeg.c  Thu Apr 23 15:24:00 2020
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_image__jpeg.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/image_jpeg.c.orig      2012-02-26 19:34:00.000000000 +0000
++++ src/image_jpeg.c
+@@ -92,10 +92,10 @@ probe_jpeg (AVFormatContext *ctx,
+     return NULL;
+ 
+   /* check for JPEG compliant codec */
+-  if (codecs->vc->codec_id != CODEC_ID_MJPEG &&
+-      codecs->vc->codec_id != CODEC_ID_MJPEGB &&
+-      codecs->vc->codec_id != CODEC_ID_LJPEG &&
+-      codecs->vc->codec_id != CODEC_ID_JPEGLS)
++  if (codecs->vc->codec_id != AV_CODEC_ID_MJPEG &&
++      codecs->vc->codec_id != AV_CODEC_ID_MJPEGB &&
++      codecs->vc->codec_id != AV_CODEC_ID_LJPEG &&
++      codecs->vc->codec_id != AV_CODEC_ID_JPEGLS)
+     return NULL;
+ 
+   for (i = 0; jpeg_profiles_mapping[i].profile; i++)
Index: pkgsrc/net/libdlna/patches/patch-src_image__png.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_image__png.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_image__png.c   Thu Apr 23 15:24:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_image__png.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/image_png.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/image_png.c
+@@ -76,7 +76,7 @@ probe_png (AVFormatContext *ctx,
+     return NULL;
+   
+   /* check for PNG compliant codec */
+-  if (codecs->vc->codec_id != CODEC_ID_PNG)
++  if (codecs->vc->codec_id != AV_CODEC_ID_PNG)
+     return NULL;
+ 
+   for (i = 0; png_profiles_mapping[i].profile; i++)
Index: pkgsrc/net/libdlna/patches/patch-src_profiles.c
diff -u /dev/null pkgsrc/net/libdlna/patches/patch-src_profiles.c:1.1
--- /dev/null   Thu Apr 23 15:24:01 2020
+++ pkgsrc/net/libdlna/patches/patch-src_profiles.c     Thu Apr 23 15:24:00 2020
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_profiles.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/profiles.c.orig        2012-02-26 19:34:00.000000000 +0000
++++ src/profiles.c
+@@ -287,7 +287,7 @@ dlna_guess_media_profile (dlna_t *dlna, 
+     return NULL;
+   }
+ 
+-  if (av_find_stream_info (ctx) < 0)
++  if (avformat_find_stream_info (ctx, NULL) < 0)
+   {
+     if (dlna->verbosity)
+       fprintf (stderr, "can't find stream info\n");
+@@ -334,7 +334,7 @@ dlna_guess_media_profile (dlna_t *dlna, 
+     p = p->next;
+   }
+ 
+-  av_close_input_file (ctx);
++  avformat_close_input (&ctx);
+   free (codecs);
+   return profile;
+ }



Home | Main Index | Thread Index | Old Index