pkgsrc-Changes archive

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

CVS commit: pkgsrc/multimedia/ffmpeg5



Module Name:    pkgsrc
Committed By:   markd
Date:           Wed Jun  7 11:42:21 UTC 2023

Modified Files:
        pkgsrc/multimedia/ffmpeg5: Makefile distinfo
Added Files:
        pkgsrc/multimedia/ffmpeg5/patches: patch-libavformat_avformat.h
            patch-libavformat_mux__utils.c

Log Message:
ffmpeg5: expose av_stream_get_first_dts() required by chromium
patch from ArchLinux


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/multimedia/ffmpeg5/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/multimedia/ffmpeg5/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/multimedia/ffmpeg5/patches/patch-libavformat_avformat.h \
    pkgsrc/multimedia/ffmpeg5/patches/patch-libavformat_mux__utils.c

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

Modified files:

Index: pkgsrc/multimedia/ffmpeg5/Makefile
diff -u pkgsrc/multimedia/ffmpeg5/Makefile:1.20 pkgsrc/multimedia/ffmpeg5/Makefile:1.21
--- pkgsrc/multimedia/ffmpeg5/Makefile:1.20     Fri Jun  2 16:36:54 2023
+++ pkgsrc/multimedia/ffmpeg5/Makefile  Wed Jun  7 11:42:21 2023
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2023/06/02 16:36:54 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2023/06/07 11:42:21 markd Exp $
 
 PKGNAME=       ${DISTNAME:S/ffmpeg/ffmpeg5/}
-PKGREVISION=   2
+PKGREVISION=   3
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://ffmpeg.org/
 COMMENT=       Decoding, encoding and streaming software (v5.x)

Index: pkgsrc/multimedia/ffmpeg5/distinfo
diff -u pkgsrc/multimedia/ffmpeg5/distinfo:1.7 pkgsrc/multimedia/ffmpeg5/distinfo:1.8
--- pkgsrc/multimedia/ffmpeg5/distinfo:1.7      Fri Jun  2 16:14:11 2023
+++ pkgsrc/multimedia/ffmpeg5/distinfo  Wed Jun  7 11:42:21 2023
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2023/06/02 16:14:11 wiz Exp $
+$NetBSD: distinfo,v 1.8 2023/06/07 11:42:21 markd Exp $
 
 BLAKE2s (ffmpeg-5.1.3.tar.xz) = 68bec61d58ecbb84d9292add3bd8e608b9d416a4dd7f32203205aa5ee29508be
 SHA512 (ffmpeg-5.1.3.tar.xz) = 4310f27fe0c7b4363207e1535115e0ad266a45772bdb5445f5c8658f35b0f3216d8f2cf70d1d2baa71b12069fbdccf418a774b353ddf092d4f66829ef391508a
@@ -15,6 +15,8 @@ SHA1 (patch-libavdevice_sunau.c) = 44dba
 SHA1 (patch-libavdevice_sunau.h) = 2678d87f81e7b3faa42b5cc9814e373c4ad812f6
 SHA1 (patch-libavdevice_sunau__dec.c) = d2fc01e941c68ab8b6f5e0b98ee536a32cc56bdc
 SHA1 (patch-libavdevice_sunau__enc.c) = efe765b99ad6379d0237c619ac0dce41306431be
+SHA1 (patch-libavformat_avformat.h) = b7662e9b90b6f6ecebe02478ac2fc0ab3bd7bf70
+SHA1 (patch-libavformat_mux__utils.c) = 225d39530656b4e2267dcdf44098e1ac5a1728ba
 SHA1 (patch-libavutil_macros.h) = 7d9770f018a2207d2dcb1fe057564e30be51fd42
 SHA1 (patch-libavutil_x86_asm.h) = 8f48f9e8ec08b5176bb40fc0021f3bb913dbef22
 SHA1 (patch-libavutil_x86_cpu.c) = 9c97e68fde0fcb19741e034a803d509040ea4487

Added files:

Index: pkgsrc/multimedia/ffmpeg5/patches/patch-libavformat_avformat.h
diff -u /dev/null pkgsrc/multimedia/ffmpeg5/patches/patch-libavformat_avformat.h:1.1
--- /dev/null   Wed Jun  7 11:42:21 2023
+++ pkgsrc/multimedia/ffmpeg5/patches/patch-libavformat_avformat.h      Wed Jun  7 11:42:21 2023
@@ -0,0 +1,17 @@
+$NetBSD: patch-libavformat_avformat.h,v 1.1 2023/06/07 11:42:21 markd Exp $
+
+expose av_stream_get_first_dts() for chromium - from ArchLinux
+
+--- libavformat/avformat.h.orig        2023-03-26 14:21:00.000000000 +0000
++++ libavformat/avformat.h
+@@ -1128,6 +1128,10 @@ struct AVCodecParserContext *av_stream_g
+  */
+ int64_t    av_stream_get_end_pts(const AVStream *st);
+ 
++// Chromium: We use the internal field first_dts vvv
++int64_t    av_stream_get_first_dts(const AVStream *st);
++// Chromium: We use the internal field first_dts ^^^
++
+ #define AV_PROGRAM_RUNNING 1
+ 
+ /**
Index: pkgsrc/multimedia/ffmpeg5/patches/patch-libavformat_mux__utils.c
diff -u /dev/null pkgsrc/multimedia/ffmpeg5/patches/patch-libavformat_mux__utils.c:1.1
--- /dev/null   Wed Jun  7 11:42:21 2023
+++ pkgsrc/multimedia/ffmpeg5/patches/patch-libavformat_mux__utils.c    Wed Jun  7 11:42:21 2023
@@ -0,0 +1,20 @@
+$NetBSD: patch-libavformat_mux__utils.c,v 1.1 2023/06/07 11:42:21 markd Exp $
+
+expose av_stream_get_first_dts() for chromium - from ArchLinux
+
+--- libavformat/mux_utils.c.orig       2023-03-26 14:21:00.000000000 +0000
++++ libavformat/mux_utils.c
+@@ -37,6 +37,13 @@ int64_t av_stream_get_end_pts(const AVSt
+         return AV_NOPTS_VALUE;
+ }
+ 
++// Chromium: We use the internal field first_dts vvv
++int64_t av_stream_get_first_dts(const AVStream *st)
++{
++  return cffstream(st)->first_dts;
++}
++// Chromium: We use the internal field first_dts ^^^
++
+ int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
+                          int std_compliance)
+ {



Home | Main Index | Thread Index | Old Index