1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00

- Fix segmentation fault with jpeg

PR:		146311
Submitted by:	Ports Fury
Approved by:	maintainer
This commit is contained in:
Martin Wilke 2010-05-09 11:22:21 +00:00
parent 6caafb26d4
commit 40245408ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=254002
2 changed files with 17 additions and 1 deletions

View File

@ -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/

View File

@ -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;