From 40245408acc8e2fadea94dddb5e35a3cbcd4e19a Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sun, 9 May 2010 11:22:21 +0000 Subject: - Fix segmentation fault with jpeg PR: 146311 Submitted by: Ports Fury Approved by: maintainer --- multimedia/transcode/Makefile | 2 +- multimedia/transcode/files/patch-export__export_jpg.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 multimedia/transcode/files/patch-export__export_jpg.c (limited to 'multimedia/transcode') diff --git a/multimedia/transcode/Makefile b/multimedia/transcode/Makefile index 9930e952dd45..47cf46271997 100644 --- a/multimedia/transcode/Makefile +++ b/multimedia/transcode/Makefile @@ -7,7 +7,7 @@ PORTNAME= transcode PORTVERSION= 1.1.5 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_BERLIOS} \ http://fromani.exit1.org/ diff --git a/multimedia/transcode/files/patch-export__export_jpg.c b/multimedia/transcode/files/patch-export__export_jpg.c new file mode 100644 index 000000000000..288932a6159c --- /dev/null +++ b/multimedia/transcode/files/patch-export__export_jpg.c @@ -0,0 +1,16 @@ +http://bugs.gentoo.org/show_bug.cgi?id=294488 + +Patch by: Salah Coronya + +Fix segmentation fault with jpeg-7 and above where dinfo.do_fancy_upsampling isn't set by default to FALSE anymore. + +--- export/export_jpg.c ++++ export/export_jpg.c +@@ -91,6 +91,7 @@ + + jpeg_set_quality(&encinfo, quality, TRUE); + encinfo.raw_data_in = TRUE; ++ encinfo.do_fancy_downsampling = FALSE; + encinfo.in_color_space = JCS_YCbCr; + + encinfo.comp_info[0].h_samp_factor = 2; -- cgit v1.2.3