From: Steve Underwood Date: Sun, 21 Apr 2013 14:47:08 +0000 (+0800) Subject: Fixed a new error introduced when scrunching colour images down to bi-level X-Git-Tag: v1.5.1~207 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df4d264a6ec18f72ed11cc92372c17ae5dbe6629;p=thirdparty%2Ffreeswitch.git Fixed a new error introduced when scrunching colour images down to bi-level --- diff --git a/libs/spandsp/src/t30.c b/libs/spandsp/src/t30.c index e7d07189b0..1667949f50 100644 --- a/libs/spandsp/src/t30.c +++ b/libs/spandsp/src/t30.c @@ -1750,7 +1750,6 @@ static int build_dcs(t30_state_t *s) /* Deal with the image length */ /* If the other end supports unlimited length, then use that. Otherwise, if the other end supports B4 use that, as its longer than the default A4 length. */ -printf("Size1 0x%x\n", s->mutual_image_sizes); if ((s->mutual_image_sizes & T4_SUPPORT_LENGTH_UNLIMITED)) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_UNLIMITED_LENGTH); else if ((s->mutual_image_sizes & T4_SUPPORT_LENGTH_B4)) diff --git a/libs/spandsp/src/t4_tx.c b/libs/spandsp/src/t4_tx.c index 07903816bd..42d9f6c578 100644 --- a/libs/spandsp/src/t4_tx.c +++ b/libs/spandsp/src/t4_tx.c @@ -840,6 +840,7 @@ static int read_tiff_image(t4_tx_state_t *s) s->image_length = image_translate_get_output_length(translator); s->metadata.x_resolution = T4_X_RESOLUTION_R8; s->metadata.y_resolution = T4_Y_RESOLUTION_FINE; + s->metadata.resolution_code = T4_RESOLUTION_R8_FINE; s->tiff.image_size = (s->image_width*s->image_length + 7)/8; if (s->tiff.image_size >= s->tiff.image_buffer_size) {