packages: vice/vice-ffmpeg.patch (NEW)=?UTF-8?Q?=20?=- new

adamg adamg at pld-linux.org
Sat Feb 11 11:09:09 CET 2012


Author: adamg                        Date: Sat Feb 11 10:09:09 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/vice:
   vice-ffmpeg.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/vice/vice-ffmpeg.patch
diff -u /dev/null packages/vice/vice-ffmpeg.patch:1.1
--- /dev/null	Sat Feb 11 11:09:09 2012
+++ packages/vice/vice-ffmpeg.patch	Sat Feb 11 11:09:04 2012
@@ -0,0 +1,47 @@
+--- vice-2.3/src/gfxoutputdrv/ffmpegdrv.c.orig	2012-02-11 11:00:26.471312970 +0100
++++ vice-2.3/src/gfxoutputdrv/ffmpegdrv.c	2012-02-11 11:01:17.575884177 +0100
+@@ -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;
================================================================


More information about the pld-cvs-commit mailing list