Author: thl
Update of /cvs/free/rpms/gstreamer-ffmpeg/EL-5
In directory se02.es.rpmfusion.net:/tmp/cvs-serv31285
Modified Files:
.cvsignore gstreamer-ffmpeg.spec sources
Added Files:
gst-ffmpeg-0.10.4-av_picture_copy.patch
Removed Files:
gst-ffmpeg-0.10.1-syslibs.patch
gst-ffmpeg-0.10.3-no-ffdec_faad.patch
Log Message:
sync with F-10
gst-ffmpeg-0.10.4-av_picture_copy.patch:
--- NEW FILE gst-ffmpeg-0.10.4-av_picture_copy.patch ---
diff -up gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegcodecmap.c~
gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegcodecmap.c
--- gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegcodecmap.c~ 2008-05-22 20:18:14.000000000 +0200
+++ gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegcodecmap.c 2008-05-22 20:18:14.000000000 +0200
@@ -3287,29 +3287,3 @@ gst_ffmpeg_avpicture_fill (AVPicture * p
return 0;
}
-
-/**
- * Convert image 'src' to 'dst'.
- *
- * We use this code to copy two pictures between the same
- * colorspaces, so this function is not realy used to do
- * colorspace conversion.
- * The ffmpeg code has a bug in it where odd sized frames were
- * not copied completely. We adjust the input parameters for
- * the original ffmpeg img_convert function here so that it
- * still does the right thing.
- */
-int
-gst_ffmpeg_img_convert (AVPicture * dst, int dst_pix_fmt,
- const AVPicture * src, int src_pix_fmt, int src_width, int src_height)
-{
- struct SwsContext *ctx;
- int res;
-
- ctx = sws_getContext (src_width, src_height, src_pix_fmt, src_width, src_height,
dst_pix_fmt, 2, /* flags : bicubic */
- NULL, NULL, NULL);
- res = sws_scale (ctx, (uint8_t **) src->data, (int *) src->linesize,
- 2, src_width, dst->data, dst->linesize);
- sws_freeContext (ctx);
- return res;
-}
diff -up gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegcodecmap.h~
gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegcodecmap.h
--- gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegcodecmap.h~ 2008-05-22 20:17:56.000000000 +0200
+++ gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegcodecmap.h 2008-05-22 20:17:56.000000000 +0200
@@ -125,15 +125,6 @@ gst_ffmpeg_avpicture_fill (AVPicture * p
int height);
/*
- * convert an image, we only use this for copying the image, ie,
- * convert between the same colorspaces.
- */
-int
-gst_ffmpeg_img_convert (AVPicture * dst, int dst_pix_fmt,
- const AVPicture * src, int src_pix_fmt,
- int src_width, int src_height);
-
-/*
* Convert from/to a GStreamer <-> FFMpeg timestamp.
*/
static inline guint64
diff -up gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegdec.c~
gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegdec.c
--- gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegdec.c~ 2008-05-22 20:27:02.000000000 +0200
+++ gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegdec.c 2008-05-22 20:27:02.000000000 +0200
@@ -1342,11 +1342,7 @@ get_output_buffer (GstFFMpegDec * ffmpeg
gst_ffmpeg_avpicture_fill (&pic, GST_BUFFER_DATA (*outbuf),
ffmpegdec->context->pix_fmt, width, height);
- /* the original convert function did not do the right thing, this
- * is a patched up version that adjust widht/height so that the
- * ffmpeg one works correctly. */
- gst_ffmpeg_img_convert (&pic, ffmpegdec->context->pix_fmt,
- (AVPicture *) ffmpegdec->picture,
+ av_picture_copy(&pic, (AVPicture *) ffmpegdec->picture,
ffmpegdec->context->pix_fmt, width, height);
}
ffmpegdec->picture->pts = -1;
diff -up gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegdemux.c~
gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegdemux.c
--- gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegdemux.c~ 2008-05-22 20:27:18.000000000 +0200
+++ gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegdemux.c 2008-05-22 20:27:18.000000000 +0200
@@ -1268,9 +1268,8 @@ gst_ffmpegdemux_loop (GstPad * pad)
avstream->codec->pix_fmt, avstream->codec->width,
avstream->codec->height);
- gst_ffmpeg_img_convert (&dst, avstream->codec->pix_fmt,
- &src, avstream->codec->pix_fmt, avstream->codec->width,
- avstream->codec->height);
+ av_picture_copy (&dst, &src, avstream->codec->pix_fmt,
+ avstream->codec->width, avstream->codec->height);
} else {
memcpy (GST_BUFFER_DATA (outbuf), pkt.data, outsize);
}
diff -up gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegmux.c~
gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegmux.c
--- gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegmux.c~ 2008-05-22 20:27:17.000000000 +0200
+++ gst-ffmpeg-0.10.4/ext/ffmpeg/gstffmpegmux.c 2008-05-22 20:27:17.000000000 +0200
@@ -554,8 +554,8 @@ gst_ffmpegmux_collected (GstCollectPads
gst_ffmpeg_avpicture_fill (&src, GST_BUFFER_DATA (buf),
PIX_FMT_RGB24, st->codec->width, st->codec->height);
- gst_ffmpeg_img_convert (&dst, PIX_FMT_RGB24,
- &src, PIX_FMT_RGB24, st->codec->width, st->codec->height);
+ av_picture_copy(&dst, &src, PIX_FMT_RGB24,
+ st->codec->width, st->codec->height);
} else {
pkt.data = GST_BUFFER_DATA (buf);
pkt.size = GST_BUFFER_SIZE (buf);
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/gstreamer-ffmpeg/EL-5/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore 2 May 2008 14:27:12 -0000 1.2
+++ .cvsignore 10 May 2009 13:05:52 -0000 1.3
@@ -1 +1 @@
-gst-ffmpeg-0.10.3.tar.bz2
+gst-ffmpeg-0.10.5.tar.bz2
Index: gstreamer-ffmpeg.spec
===================================================================
RCS file: /cvs/free/rpms/gstreamer-ffmpeg/EL-5/gstreamer-ffmpeg.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gstreamer-ffmpeg.spec 2 May 2008 14:27:12 -0000 1.1
+++ gstreamer-ffmpeg.spec 10 May 2009 13:05:52 -0000 1.2
@@ -1,18 +1,16 @@
Name: gstreamer-ffmpeg
-Version: 0.10.3
-Release: 4%{?dist}
+Version: 0.10.5
+Release: 1%{?dist}
Summary: GStreamer FFmpeg-based plug-ins
Group: Applications/Multimedia
# the ffmpeg plugin is LGPL, the postproc plugin is GPL
License: GPLv2+ and LGPLv2+
URL:
http://gstreamer.freedesktop.org/
Source:
http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-%{version}.tar...
-Patch0: gst-ffmpeg-0.10.1-syslibs.patch
-Patch1: gst-ffmpeg-0.10.3-no-ffdec_faad.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gstreamer-devel >= 0.10.0
BuildRequires: gstreamer-plugins-base-devel >= 0.10.0
-BuildRequires: ffmpeg-devel liboil-devel
+BuildRequires: ffmpeg-devel liboil-devel bzip2-devel
%description
GStreamer is a streaming media framework, based on graphs of filters which
@@ -27,8 +25,12 @@
%prep
%setup -q -n gst-ffmpeg-%{version}
-%patch0 -p1 -z .syslibs
-%patch1 -p1
+# adjust includes for the header move in latest ffmpeg <sigh>
+sed -i -e 's|ffmpeg/avcodec.h|ffmpeg/libavcodec/avcodec.h|g' \
+ -e 's|ffmpeg/avformat.h|ffmpeg/libavformat/avformat.h|g' \
+ -e 's|postproc/postprocess.h|ffmpeg/libpostproc/postprocess.h|g' \
+ -e 's|ffmpeg/swscale.h|ffmpeg/libswscale/swscale.h|g' \
+ ext/ffmpeg/*.c ext/ffmpeg/*.h ext/libpostproc/*.c
%build
@@ -57,6 +59,20 @@
%changelog
+* Sun Sep 14 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.5-1
+- New upstream release 0.10.5
+- Drop all patches, all upstreamed <yeah>
+
+* Thu Jul 24 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.4-2
+- Release bump for rpmfusion build
+
+* Thu May 22 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.4-1
+- New upstream release 0.10.4
+- Drop several upstreamed patches
+
+* Thu May 8 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.3-5
+- Fix playback of wvc1 videos (livna bug 1960)
+
* Thu Apr 10 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.3-4
- Disable ffdec_faad as this has issues (use gstreamer-plugins-bad instead)
(livna bug 1935)
Index: sources
===================================================================
RCS file: /cvs/free/rpms/gstreamer-ffmpeg/EL-5/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources 2 May 2008 14:27:12 -0000 1.2
+++ sources 10 May 2009 13:05:52 -0000 1.3
@@ -1 +1 @@
-c07fd2da0835989fc4eae291cbc05f09 gst-ffmpeg-0.10.3.tar.bz2
+1ff579945eafcfddab420b734c3a0c92 gst-ffmpeg-0.10.5.tar.bz2
--- gst-ffmpeg-0.10.1-syslibs.patch DELETED ---
--- gst-ffmpeg-0.10.3-no-ffdec_faad.patch DELETED ---