diff --git a/libs/spandsp/src/t4_rx.c b/libs/spandsp/src/t4_rx.c index 5852de3ae6..14910dfd98 100644 --- a/libs/spandsp/src/t4_rx.c +++ b/libs/spandsp/src/t4_rx.c @@ -1052,8 +1052,10 @@ SPAN_DECLARE(int) t4_rx_end_page(t4_rx_state_t *s) int length; length = 0; + if (s->image_put_handler) s->image_put_handler((void *) &s->decoder, NULL, 0); + switch (s->metadata.compression) { case T4_COMPRESSION_T4_1D: