removed implicit declaration warning

This commit is contained in:
Anshul Maheshwari 2014-07-19 16:35:53 +05:30
parent f543e3f4e2
commit bab0ec8b60
2 changed files with 11 additions and 1 deletions

View File

@ -4,6 +4,8 @@
#include "spupng_encoder.h"
#include "608_spupng.h"
#include "utility.h"
#include "xds.h"
static const char *sami_header= // TODO: Revise the <!-- comments
"<SAMI>\n\
<HEAD>\n\
@ -333,7 +335,7 @@ int encode_sub(struct encoder_ctx *context, struct cc_subtitle *sub)
if(data->format == SFORMAT_XDS)
{
xds_write_transcript_line_prefix (context->out, data->start_time, data->end_time);
write (context->out, data->xds_str,data->xds_len);
write (context->out->fh, data->xds_str,data->xds_len);
free (data->xds_str);
xds_write_transcript_line_suffix (context->out);
}

8
src/xds.h Normal file
View File

@ -0,0 +1,8 @@
#ifndef _XDS_H
#define _XDS_H
void xds_write_transcript_line_suffix (struct ccx_s_write *wb);
void xds_write_transcript_line_prefix (struct ccx_s_write *wb, LLONG start_time, LLONG end_time);
#endif