File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -625,7 +625,7 @@ static void free_picture(Frame *vp)
625
625
// FFP_MERGE: upload_texture
626
626
// FFP_MERGE: video_image_display
627
627
628
- static int parse_ass_subtitle (const char * ass , char * output )
628
+ static size_t parse_ass_subtitle (const char * ass , char * output )
629
629
{
630
630
char * tok = NULL ;
631
631
tok = strchr (ass , ':' ); if (tok ) tok += 1 ; // skip event
@@ -640,18 +640,18 @@ static int parse_ass_subtitle(const char *ass, char *output)
640
640
tok = strchr (tok , ',' ); if (tok ) tok += 1 ; // skip effect
641
641
if (tok ) {
642
642
char * text = tok ;
643
- int idx = 0 ;
643
+ size_t idx = 0 ;
644
644
do {
645
645
char * found = strstr (text , "\\N" );
646
646
if (found ) {
647
- int n = found - text ;
647
+ size_t n = found - text ;
648
648
memcpy (output + idx , text , n );
649
649
output [idx + n ] = '\n' ;
650
650
idx = n + 1 ;
651
651
text = found + 2 ;
652
652
}
653
653
else {
654
- int left_text_len = strlen (text );
654
+ size_t left_text_len = strlen (text );
655
655
memcpy (output + idx , text , left_text_len );
656
656
if (output [idx + left_text_len - 1 ] == '\n' )
657
657
output [idx + left_text_len - 1 ] = '\0' ;
You can’t perform that action at this time.
0 commit comments