static void hb_makestyleatom( stylerecord *record, uint8_t *style)
{
uint8_t face = 1;
static void hb_makestyleatom( stylerecord *record, uint8_t *style)
{
uint8_t face = 1;
- hb_deep_log(3, "Made style '%s' from %d to %d\n",
+ hb_deep_log(3, "Made style '%s' from %d to %d",
record->style == ITALIC ? "Italic" : record->style == BOLD ? "Bold" : "Underline", record->start, record->stop);
switch( record->style )
record->style == ITALIC ? "Italic" : record->style == BOLD ? "Bold" : "Underline", record->start, record->stop);
switch( record->style )
uint8_t *reader = input;
uint8_t *writer = output;
uint8_t stylecount = 0;
uint8_t *reader = input;
uint8_t *writer = output;
uint8_t stylecount = 0;
stylerecord *stylestack = NULL;
stylerecord *stylestack = NULL;
+ stylerecord *oldrecord = NULL;
while(*reader != '\0') {
if (*reader == '<') {
while(*reader != '\0') {
if (*reader == '<') {
memcpy(style + 10 + (12 * stylecount), style_record, 12);
stylecount++;
memcpy(style + 10 + (12 * stylecount), style_record, 12);
stylecount++;
+ oldrecord = stylestack;
stylestack = stylestack->next;
stylestack = stylestack->next;
} else {
hb_error("Mismatched Subtitle markup '%s'", input);
}
} else {
hb_error("Mismatched Subtitle markup '%s'", input);
}
memcpy(style + 10 + (12 * stylecount), style_record, 12);
stylecount++;
memcpy(style + 10 + (12 * stylecount), style_record, 12);
stylecount++;
+ oldrecord = stylestack;
stylestack = stylestack->next;
stylestack = stylestack->next;
} else {
hb_error("Mismatched Subtitle markup '%s'", input);
}
} else {
hb_error("Mismatched Subtitle markup '%s'", input);
}
memcpy(style + 10 + (12 * stylecount), style_record, 12);
stylecount++;
memcpy(style + 10 + (12 * stylecount), style_record, 12);
stylecount++;
+ oldrecord = stylestack;
stylestack = stylestack->next;
stylestack = stylestack->next;
} else {
hb_error("Mismatched Subtitle markup '%s'", input);
}
} else {
hb_error("Mismatched Subtitle markup '%s'", input);
}
(float)buf->start / 90000, buf->start, buf->stop,
(buf->stop - buf->start), buffer);
(float)buf->start / 90000, buf->start, buf->stop,
(buf->stop - buf->start), buffer);
- hb_log("MuxMP4: sub len: %d, style_len %d", buffersize, stylesize);
-
/* Write the subtitle sample */
memcpy( output + 2, buffer, buffersize );
memcpy( output + 2 + buffersize, styleatom, stylesize);
/* Write the subtitle sample */
memcpy( output + 2, buffer, buffersize );
memcpy( output + 2 + buffersize, styleatom, stylesize);