]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9881 accidentally removed -1 for forever support
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Jan 2017 17:00:22 +0000 (11:00 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Jan 2017 17:00:28 +0000 (11:00 -0600)
src/mod/formats/mod_png/mod_png.c

index a2bfcfad980195b7fbdd86663773bea1686a0a33..da4a326d43c2b98d169ed58331d4f03d3643e10e 100644 (file)
@@ -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);