Skip to content

Commit

Permalink
Fixed #2582
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Sep 2, 2023
1 parent a8bc2c8 commit 7e2e92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene_manager/swf_parse.c
Expand Up @@ -1426,7 +1426,7 @@ static GF_Err swf_def_font(SWFReader *read, u32 revision)
count = swf_get_16(read);
ft->nbGlyphs = count / 2;
offset_table = (u32*)gf_malloc(sizeof(u32) * ft->nbGlyphs);
offset_table[0] = 0;
if (ft->nbGlyphs) offset_table[0] = 0;
for (i=1; i<ft->nbGlyphs; i++) offset_table[i] = swf_get_16(read);

for (i=0; i<ft->nbGlyphs; i++) {
Expand Down

0 comments on commit 7e2e92f

Please sign in to comment.