summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2012-10-10 13:40:06 +0000
committerdrochner <drochner@pkgsrc.org>2012-10-10 13:40:06 +0000
commitb6a4f01969c08fd59b36ffd42f2292a6a2e20159 (patch)
tree608f7ccbe38c778a9c50cef374c12b851889bd9b /emulators
parent72652a0ad693ee4c7d696a9359ff14f9db65f9d5 (diff)
downloadpkgsrc-b6a4f01969c08fd59b36ffd42f2292a6a2e20159.tar.gz
add patch from wiz to fix build with new ffmpeg
Diffstat (limited to 'emulators')
-rw-r--r--emulators/vice/distinfo3
-rw-r--r--emulators/vice/patches/patch-src_gfxoutputdrv_ffmpegdrv.c51
2 files changed, 53 insertions, 1 deletions
diff --git a/emulators/vice/distinfo b/emulators/vice/distinfo
index 2425565a505..59fb8a8f260 100644
--- a/emulators/vice/distinfo
+++ b/emulators/vice/distinfo
@@ -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 --git a/emulators/vice/patches/patch-src_gfxoutputdrv_ffmpegdrv.c b/emulators/vice/patches/patch-src_gfxoutputdrv_ffmpegdrv.c
new file mode 100644
index 00000000000..dfa19d9a1eb
--- /dev/null
+++ b/emulators/vice/patches/patch-src_gfxoutputdrv_ffmpegdrv.c
@@ -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;