1
0
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:
cantabile 2017-04-20 17:06:32 +03:00 committed by wm4
parent 611426d162
commit 4b4dee09ad

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;