diff options
author | drochner <drochner@pkgsrc.org> | 2012-10-10 13:40:06 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2012-10-10 13:40:06 +0000 |
commit | 6a8d25eb36c1971328c051377ece232c20866b11 (patch) | |
tree | 608f7ccbe38c778a9c50cef374c12b851889bd9b | |
parent | beeea430f03fac2465461bba0939da6333890f67 (diff) | |
download | pkgsrc-6a8d25eb36c1971328c051377ece232c20866b11.tar.gz |
add patch from wiz to fix build with new ffmpeg
-rw-r--r-- | emulators/vice/distinfo | 3 | ||||
-rw-r--r-- | emulators/vice/patches/patch-src_gfxoutputdrv_ffmpegdrv.c | 51 |
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; |