From: Anthony Minessale Date: Wed, 4 Jan 2017 17:00:22 +0000 (-0600) Subject: FS-9881 accidentally removed -1 for forever support X-Git-Tag: v1.8.0~936 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d8e324e001b36d47be537efb31161acd2780d79;p=thirdparty%2Ffreeswitch.git FS-9881 accidentally removed -1 for forever support --- diff --git a/src/mod/formats/mod_png/mod_png.c b/src/mod/formats/mod_png/mod_png.c index a2bfcfad98..da4a326d43 100644 --- a/src/mod/formats/mod_png/mod_png.c +++ b/src/mod/formats/mod_png/mod_png.c @@ -185,7 +185,7 @@ static switch_status_t png_file_read(switch_file_handle_t *handle, void *data, s context->samples -= *len; } - if (context->samples <= 0) { + if (context->samples == 0) { context->done = 1; status = SWITCH_STATUS_FALSE; switch_goto_status(status, end);