You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-tv/xawtv/files/xawtv-3.95-jpeg-7.patch

26 lines
746 B

http://bugs.gentoo.org/288158
http://bugs.gentoo.org/479848
--- libng/plugins/conv-mjpeg.c
+++ libng/plugins/conv-mjpeg.c
@@ -229,6 +229,9 @@
jpeg_set_quality(&h->mjpg_cinfo, ng_jpeg_quality, TRUE);
h->mjpg_cinfo.raw_data_in = TRUE;
+ #if JPEG_LIB_VERSION >= 70
+ h->mjpg_cinfo.do_fancy_downsampling = FALSE;
+ #endif
jpeg_set_colorspace(&h->mjpg_cinfo,JCS_YCbCr);
h->mjpg_ptrs[0] = malloc(h->fmt.height*sizeof(char*));
@@ -453,6 +456,9 @@
h->buf = in;
jpeg_read_header(&h->mjpg_cinfo,1);
h->mjpg_cinfo.raw_data_out = 1;
+ #if JPEG_LIB_VERSION >= 70
+ h->mjpg_cinfo.do_fancy_upsampling = FALSE;
+ #endif
if (ng_debug > 1)
fprintf(stderr,"yuv: %dx%d - %d %d / %d %d / %d %d\n",