Merge pull request #660 from Izaron/708-adventures

Fixed ttxt 708 files segfault
This commit is contained in:
Carlos Fernandez Sanz 2017-01-23 10:05:10 -08:00 committed by GitHub
commit 8dc1964f8c

View File

@ -279,7 +279,7 @@ void ccx_dtvcc_write_transcript(ccx_dtvcc_writer_ctx *writer, ccx_dtvcc_service_
if (strlen(buf))
write(encoder->dtvcc_writers[tv->service_number - 1].fd, buf, strlen(buf));
_dtvcc_write_row(writer, tv, i, encoder, 0);
_dtvcc_write_row(writer, decoder, i, encoder, 0);
write(encoder->dtvcc_writers[tv->service_number - 1].fd,
encoder->encoded_crlf, encoder->encoded_crlf_length);
}