* [gentoo-commits] gentoo-x86 commit in app-emulation/vice/files: vice-2.3-libav.patch
@ 2011-12-13 18:23 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; only message in thread
From: Michael Sterrett (mr_bones_) @ 2011-12-13 18:23 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 11/12/13 18:23:07
Added: vice-2.3-libav.patch
Log:
Add patch to build with newer ffmpeg from Michael (kensington) (bug #394341)
(Portage version: 2.1.10.11/cvs/Linux i686)
Revision Changes Path
1.1 app-emulation/vice/files/vice-2.3-libav.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vice/files/vice-2.3-libav.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vice/files/vice-2.3-libav.patch?rev=1.1&content-type=text/plain
Index: vice-2.3-libav.patch
===================================================================
--- src/gfxoutputdrv/ffmpegdrv.c
+++ src/gfxoutputdrv/ffmpegdrv.c
@@ -342,7 +342,7 @@
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 @@
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 @@
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 @@
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 @@
(*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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-13 18:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 18:23 [gentoo-commits] gentoo-x86 commit in app-emulation/vice/files: vice-2.3-libav.patch Michael Sterrett (mr_bones_)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox