sd_lavc: Free extradata in case of init error

This commit is contained in:
cantabile 2017-04-20 17:06:32 +03:00 committed by wm4
parent 611426d162
commit 4b4dee09ad
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ static int init(struct sd *sd)
error:
MP_FATAL(sd, "Could not open libavcodec subtitle decoder\n");
if (ctx)
av_free(ctx->extradata);
av_free(ctx);
talloc_free(priv);
return -1;