forked from pool/libquicktime
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
|
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
|