forked from pool/libquicktime
Accepting request 52606 from multimedia:libs
Accepted submit request 52606 from user puzel OBS-URL: https://build.opensuse.org/request/show/52606 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libquicktime?expand=0&rev=19
This commit is contained in:
commit
c4d761024e
34
libquicktime-jpeg7.patch
Normal file
34
libquicktime-jpeg7.patch
Normal file
@ -0,0 +1,34 @@
|
||||
Index: plugins/mjpeg/libmjpeg.c
|
||||
===================================================================
|
||||
--- plugins/mjpeg/libmjpeg.c.orig
|
||||
+++ plugins/mjpeg/libmjpeg.c
|
||||
@@ -479,6 +479,9 @@ static void new_jpeg_objects(mjpeg_compr
|
||||
/* Ideally the error handler would be set here but it must be called in a thread */
|
||||
jpeg_create_decompress(&(engine->jpeg_decompress));
|
||||
engine->jpeg_decompress.raw_data_out = TRUE;
|
||||
+#if JPEG_LIB_VERSION >= 70
|
||||
+ engine->jpeg_decompress.do_fancy_upsampling = FALSE;
|
||||
+#endif
|
||||
engine->jpeg_decompress.dct_method = JDCT_IFAST;
|
||||
}
|
||||
|
||||
@@ -665,6 +668,9 @@ static void decompress_field(mjpeg_compr
|
||||
|
||||
// Reset by jpeg_read_header
|
||||
engine->jpeg_decompress.raw_data_out = TRUE;
|
||||
+#if JPEG_LIB_VERSION >= 70
|
||||
+ engine->jpeg_decompress.do_fancy_upsampling = FALSE;
|
||||
+#endif
|
||||
jpeg_start_decompress(&engine->jpeg_decompress);
|
||||
|
||||
// Generate colormodel from jpeg sampling
|
||||
@@ -786,6 +792,9 @@ static mjpeg_compressor* mjpeg_new_compr
|
||||
result->jpeg_compress.in_color_space = JCS_RGB;
|
||||
jpeg_set_quality(&(result->jpeg_compress), mjpeg->quality, 0);
|
||||
|
||||
+#if JPEG_LIB_VERSION >= 70
|
||||
+ result->jpeg_compress.do_fancy_downsampling = FALSE;
|
||||
+#endif
|
||||
if(mjpeg->use_float)
|
||||
result->jpeg_compress.dct_method = JDCT_FLOAT;
|
||||
else
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 3 16:29:57 UTC 2010 - puzel@novell.com
|
||||
|
||||
- add libquicktime-jpeg7.patch (bnc#647859)
|
||||
- patch by Martin Wilck
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 26 11:40:10 UTC 2010 - puzel@novell.com
|
||||
|
||||
|
@ -38,6 +38,7 @@ Release: 1
|
||||
Url: http://libquicktime.sf.net
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Patch1: %{name}-1.0.3-dont_disable_deprecated.patch
|
||||
Patch2: libquicktime-jpeg7.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Summary: A Library for Reading and Writing Quicktime Movie Files
|
||||
Provides: quicktime4linux
|
||||
@ -69,6 +70,7 @@ from quicktime4linux
|
||||
# fix brokem links in API docs
|
||||
sed -r 's/"(building|codecs|index|license|opening|positioning|reading|util|writing).html/"qt4l_&/' -i `find doc -type f`
|
||||
%patch1 -p1
|
||||
%patch2 -p0
|
||||
|
||||
%build
|
||||
autoreconf -f -i -v
|
||||
|
Loading…
x
Reference in New Issue
Block a user