pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/vice add patch from wiz to fix build with ne...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a05d8d4dacac
branches:  trunk
changeset: 609805:a05d8d4dacac
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Oct 10 13:40:06 2012 +0000

description:
add patch from wiz to fix build with new ffmpeg

diffstat:

 emulators/vice/distinfo                                   |   3 +-
 emulators/vice/patches/patch-src_gfxoutputdrv_ffmpegdrv.c |  51 +++++++++++++++
 2 files changed, 53 insertions(+), 1 deletions(-)

diffs (68 lines):

diff -r 664c2d807184 -r a05d8d4dacac emulators/vice/distinfo
--- a/emulators/vice/distinfo   Wed Oct 10 13:37:25 2012 +0000
+++ b/emulators/vice/distinfo   Wed Oct 10 13:40:06 2012 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.39 2012/08/14 18:49:43 marino Exp $
+$NetBSD: distinfo,v 1.40 2012/10/10 13:40:06 drochner Exp $
 
 SHA1 (vice-2.3.tar.gz) = 5e7e1a375a4ca8c4895dc1552162955fdffce296
 RMD160 (vice-2.3.tar.gz) = 056e48ffedfaecd470892c73b97af89c1e002ff9
 Size (vice-2.3.tar.gz) = 11602378 bytes
 SHA1 (patch-aa) = 7ecda5911a2dd0e7ef8676959d9dc021323d393f
 SHA1 (patch-ab) = dada25dfd5c40db040b1b99fd7071986db5b50cc
+SHA1 (patch-src_gfxoutputdrv_ffmpegdrv.c) = 6abceb628c86a401a79090edfedcc645fcc15c6d
diff -r 664c2d807184 -r a05d8d4dacac emulators/vice/patches/patch-src_gfxoutputdrv_ffmpegdrv.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/vice/patches/patch-src_gfxoutputdrv_ffmpegdrv.c Wed Oct 10 13:40:06 2012 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-src_gfxoutputdrv_ffmpegdrv.c,v 1.1 2012/10/10 13:40:06 drochner Exp $
+
+Fix build with ffmpeg-0.10.
+
+--- src/gfxoutputdrv/ffmpegdrv.c.orig  2011-02-14 17:20:56.000000000 +0000
++++ src/gfxoutputdrv/ffmpegdrv.c
+@@ -342,7 +342,7 @@ static int ffmpegmovie_init_audio(int sp
+ 
+     c = st->codec;
+     c->codec_id = ffmpegdrv_fmt->audio_codec;
+-    c->codec_type = CODEC_TYPE_AUDIO;
++    c->codec_type = AVMEDIA_TYPE_AUDIO;
+     c->sample_fmt = SAMPLE_FMT_S16;
+ 
+     /* put sample parameters */
+@@ -370,7 +370,7 @@ static int ffmpegmovie_encode_audio(soun
+         pkt.size = (*ffmpeglib.p_avcodec_encode_audio)(c, 
+                         audio_outbuf, audio_outbuf_size, audio_in->buffer);
+         pkt.pts = c->coded_frame->pts;
+-        pkt.flags |= PKT_FLAG_KEY;
++        pkt.flags |= AV_PKT_FLAG_KEY;
+         pkt.stream_index = audio_st->index;
+         pkt.data = audio_outbuf;
+ 
+@@ -559,7 +559,7 @@ static void ffmpegdrv_init_video(screens
+ 
+     c = st->codec;
+     c->codec_id = ffmpegdrv_fmt->video_codec;
+-    c->codec_type = CODEC_TYPE_VIDEO;
++    c->codec_type = AVMEDIA_TYPE_VIDEO;
+ 
+     /* put sample parameters */
+     c->bit_rate = video_bitrate;
+@@ -819,7 +819,7 @@ static int ffmpegdrv_record(screenshot_t
+     if (ffmpegdrv_oc->oformat->flags & AVFMT_RAWPICTURE) {
+         AVPacket pkt;
+         (*ffmpeglib.p_av_init_packet)(&pkt);
+-        pkt.flags |= PKT_FLAG_KEY;
++        pkt.flags |= AV_PKT_FLAG_KEY;
+         pkt.stream_index = video_st->index;
+         pkt.data = (uint8_t*)picture;
+         pkt.size = sizeof(AVPicture);
+@@ -840,7 +840,7 @@ static int ffmpegdrv_record(screenshot_t
+             (*ffmpeglib.p_av_init_packet)(&pkt);
+             pkt.pts = c->coded_frame->pts;
+             if (c->coded_frame->key_frame)
+-                pkt.flags |= PKT_FLAG_KEY;
++                pkt.flags |= AV_PKT_FLAG_KEY;
+             pkt.stream_index = video_st->index;
+             pkt.data = video_outbuf;
+             pkt.size = out_size;



Home | Main Index | Thread Index | Old Index