Skip to content

Commit

Permalink
ass: reset the ReadOrder bitmap on ass_flush_events()
Browse files Browse the repository at this point in the history
Otherwise, ass_process_chunk() will reject events that were previously
removed with ass_flush_events(), which is nonsense.
  • Loading branch information
wm4 committed Dec 20, 2015
1 parent 5e2150e commit cfa1a61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libass/ass.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,9 @@ void ass_flush_events(ASS_Track *track)
ass_free_event(track, eid);
track->n_events = 0;
}
free(track->parser_priv->read_order_bitmap);
track->parser_priv->read_order_bitmap = NULL;
track->parser_priv->read_order_elems = 0;
}

#ifdef CONFIG_ICONV
Expand Down

0 comments on commit cfa1a61

Please sign in to comment.