Skip to content

Commit

Permalink
sd_ass: initialize structs for external tracks properly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Uoti Urpala committed Feb 21, 2013
1 parent 3873a14 commit 6a74716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sub/sd_ass.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a74716

Please sign in to comment.