mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
sd_lavc: Free extradata in case of init error
This commit is contained in:
parent
611426d162
commit
4b4dee09ad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user