summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-12 05:42:57 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-12 05:44:48 +0200
commitd5b7cb636ccf447543cf2beb4b2d593fa4890570 (patch)
treeee98b0cd78a31b2f3df73a51cd7aaf7245509b7e
parentd1f0a66587b60cc9bacef21e38f8df14d1b626cb (diff)
downloadlibass-d5b7cb636ccf447543cf2beb4b2d593fa4890570.tar.bz2
libass-d5b7cb636ccf447543cf2beb4b2d593fa4890570.tar.xz
Check whether renderer and track use the same library instance
Add a sanity check to ass_start_frame that checks whether the track that is currently rendered from and the ass_renderer use the same library instance.
-rw-r--r--libass/ass_render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index ccd7bd5..25be110 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -3015,6 +3015,9 @@ static int
ass_start_frame(ass_renderer_t *render_priv, ass_track_t *track,
long long now)
{
+ if (render_priv->library != track->library)
+ return 1;
+
ass_settings_t *settings_priv = &render_priv->settings;
if (!render_priv->settings.frame_width