]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixed a new error introduced when scrunching colour images down to bi-level
authorSteve Underwood <steveu@coppice.org>
Sun, 21 Apr 2013 14:47:08 +0000 (22:47 +0800)
committerSteve Underwood <steveu@coppice.org>
Sun, 21 Apr 2013 14:47:08 +0000 (22:47 +0800)
libs/spandsp/src/t30.c
libs/spandsp/src/t4_tx.c

index e7d07189b0e6552d44cb3babad29b963a1e6c584..1667949f50dea2eba4cb902d613243bd14d2ee43 100644 (file)
@@ -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))
index 07903816bde7e363b4bca51f9cf4d81b357f8e80..42d9f6c5786a0f7916f5afdef4aec9b326723159 100644 (file)
@@ -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)
         {