From 6a747169896e6d2133b0760f53ef2b9a2e6181c8 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Thu, 21 Feb 2013 19:50:03 +0200 Subject: [PATCH] sd_ass: initialize structs for external tracks properly sd_ass_create_from_track() did not zero-initialize the created struct sh_sub, which could cause at least an assertion failure at exit. Fix. --- sub/sd_ass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sub/sd_ass.c b/sub/sd_ass.c index 1cdc1e5f37..3b02a77568 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -180,7 +180,7 @@ struct sh_sub *sd_ass_create_from_track(struct ass_track *track, bool vsfilter_aspect, struct MPOpts *opts) { - struct sh_sub *sh = talloc(NULL, struct sh_sub); + struct sh_sub *sh = talloc_zero(NULL, struct sh_sub); sh->opts = opts; sh->type = 'a'; sh->title = track->name; -- 2.11.4.GIT