Fixed issue #648

This commit is contained in:
sidgairo18 2017-01-15 14:02:49 +05:30
parent 759507f196
commit 2d56d067e3
2 changed files with 3 additions and 1 deletions

View File

@ -182,7 +182,8 @@ int write_stringz_as_webvtt(char *string, struct encoder_ctx *context, LLONG ms_
}
written = write(context->out->fh, context->encoded_crlf, context->encoded_crlf_length);
if (written != context->encoded_crlf_length)
{
{
free(el);
return -1;
}
begin += strlen((const char *)begin) + 1;

View File

@ -1234,5 +1234,6 @@ int rcwt_loop(struct lib_ccx_ctx *ctx)
} // end while(1)
dbg_print(CCX_DMT_PARSE, "Processed %d bytes\n", bread);
free(parsebuf);
return caps;
}